|
@@ -57,8 +57,8 @@ handler = WebhookHandler('58a73d69c3ad6416e0b465e64c30526a')
|
|
|
|
|
|
@app.get("/msg/{item_id}")
|
|
|
async def coffee_msg(item_id):
|
|
|
- True
|
|
|
line_bot_api.push_message(item_id, TextSendMessage(text='開啟下方完整券樣(密碼9888)至櫃台掃碼兌換。https://txp.rs/v/EvX69b4Xq9'))
|
|
|
+ line_bot_api.push_message(item_id, ImageSendMessage('http://q.ptt.cx/a1/images/finalcoupon.png', 'http://q.ptt.cx/a1/images/finalcoupon.png') )
|
|
|
return {"code":"ok" }
|
|
|
|
|
|
@app.post('/callback')
|