Your Name 3 years ago
parent
commit
6f37e1e2d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      step_question/apis/newbot.py

+ 1 - 1
step_question/apis/newbot.py

@@ -36,7 +36,7 @@ async def callback(request: fastapi.Request):
     return 'OK'
 
 
-@bot.add(linebotModels.MessageEvent, message=linebotModels.TextMessage)
+@handler.add(linebotModels.MessageEvent, message=linebotModels.TextMessage)
 def message_text(event):
     if event.message.text == '叫':
         lineBotApi.reply_message(