Skip to content

Commit

Permalink
[fix] Fix JSON parse property (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitodread authored Feb 12, 2024
1 parent 6159d69 commit c1cbdf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/telegram_bot_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def _do_work_lambda(event, context) -> dict:

try:
await app.initialize()
await app.process_update(Update.de_json(json.loads(event['body']), app.bot))
await app.process_update(Update.de_json(json.loads(event), app.bot))
except Exception as error:
print(f'Error: {error}')

Expand Down

0 comments on commit c1cbdf2

Please sign in to comment.