Skip to content

Commit 995121a

Browse files
authored
Update app.py
1 parent bc91baa commit 995121a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/aiohttp-echo/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ async def echo(self, request):
6868

6969
if event.message.text == "告訴我秘密":
7070
reply_text = "中國娃娃魚"
71-
else:
72-
reply_text = event.message.text
71+
else:
72+
reply_text = "很抱歉我聽不懂你說的東西,請你換個方式再問一次"
7373

7474
await self.line_bot_api.reply_message(
7575
event.reply_token,
76-
TextSendMessage(text='很抱歉我聽不懂你說的東西,請你換個方式再問一次')
76+
TextSendMessage(text=reply_text)
7777
)
7878

7979
return web.Response(text="OK\n")

0 commit comments

Comments
 (0)