Skip to content

Commit

Permalink
Fix bot initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
torrua committed Nov 10, 2024
1 parent e6457a3 commit 21aefc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ async def get_message():
Get all messages
:return:
"""
stream = await rq.stream
await bot.process_new_updates([types.Update.de_json(stream.read().decode("utf-8"))])
await bot.process_new_updates(
[types.Update.de_json(await rq.stream.read().decode("utf-8"))]
)
return "Ok", 200


Expand Down

0 comments on commit 21aefc8

Please sign in to comment.