|
@@ -65,6 +65,12 @@ async def callback(request: fastapi.Request):
|
|
|
|
|
|
@handler.add(linebotModels.MessageEvent, message=linebotModels.TextMessage)
|
|
@handler.add(linebotModels.MessageEvent, message=linebotModels.TextMessage)
|
|
def message_text(event):
|
|
def message_text(event):
|
|
|
|
+ if event.message.text == 'push':
|
|
|
|
+ line_bot_api.push_message(
|
|
|
|
+ event.source.user_id, [
|
|
|
|
+ TextSendMessage(text='PUSH!'),
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
if event.message.text == '叫':
|
|
if event.message.text == '叫':
|
|
line_bot_api.reply_message(
|
|
line_bot_api.reply_message(
|
|
event.reply_token, linebotModels.AudioSendMessage(
|
|
event.reply_token, linebotModels.AudioSendMessage(
|