|
@@ -49,11 +49,11 @@ 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 == '叫':
|
|
if event.message.text == '叫':
|
|
- lineBotApi.reply_message(
|
|
|
|
|
|
+ line_bot_api.reply_message(
|
|
event.reply_token, linebotModels.AudioSendMessage(
|
|
event.reply_token, linebotModels.AudioSendMessage(
|
|
original_content_url=f'{baseUrl}/static/audio/noot_noot.mp3', duration=1000))
|
|
original_content_url=f'{baseUrl}/static/audio/noot_noot.mp3', duration=1000))
|
|
if event.message.text=='ok':
|
|
if event.message.text=='ok':
|
|
- lineBotApi.reply_message(
|
|
|
|
|
|
+ line_bot_api.reply_message(
|
|
event.reply_token,
|
|
event.reply_token,
|
|
TextSendMessage(text='您本月營收為9,287元'))
|
|
TextSendMessage(text='您本月營收為9,287元'))
|
|
|
|
|