From c1cbdf2fdbfa2767ac0807e2a74687d9560df1d8 Mon Sep 17 00:00:00 2001 From: Juan Sandoval <1304670+juanitodread@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:40:48 -0800 Subject: [PATCH] [fix] Fix JSON parse property (#59) --- src/telegram_bot_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram_bot_v2.py b/src/telegram_bot_v2.py index e3f5281..014099d 100644 --- a/src/telegram_bot_v2.py +++ b/src/telegram_bot_v2.py @@ -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}')