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 41e1081 commit 2cc5ac0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ async def get_message():
Get all messages
:return:
"""
await bot.process_new_updates(
[types.Update.de_json(await rq.body.read().decode("utf-8"))]
)
await bot.process_new_updates([types.Update.de_json(await rq.body)])
return "Ok", 200


Expand Down

0 comments on commit 2cc5ac0

Please sign in to comment.