OSDN Git Service

chance
author福家 正士 <yamat0jp@yahoo.co.jp>
Tue, 25 Sep 2018 22:31:46 +0000 (07:31 +0900)
committer福家 正士 <yamat0jp@yahoo.co.jp>
Tue, 25 Sep 2018 22:31:46 +0000 (07:31 +0900)
pybbs.py

index 363b9e7..e41bf1e 100644 (file)
--- a/pybbs.py
+++ b/pybbs.py
@@ -628,8 +628,8 @@ class WebHookHandler(web.RequestHandler):
                     linebot = LineBotApi(item['access_token'])            
                     linebot.reply_message(event['replyToken'], TextSendMessage(text=te))
                 else:
-                    event['message']['text'] = te
-                    self.write(escape.json_encode(event))
+                    dic['events']['message']['text'] = te
+                    self.write(escape.json_encode(dic))
 
 class InitHandler(web.RequestHandler):
     def get(self):