From 9d0c11caf501d6986198a1a8e7c819be2d2f6796 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Sun, 14 Jul 2024 19:32:00 +0700 Subject: [PATCH] pyrofork: fix CallbackQuery parser errors Signed-off-by: wulan17 --- pyrogram/types/bots_and_keyboards/callback_query.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyrogram/types/bots_and_keyboards/callback_query.py b/pyrogram/types/bots_and_keyboards/callback_query.py index cc709862..c1ac0d6c 100644 --- a/pyrogram/types/bots_and_keyboards/callback_query.py +++ b/pyrogram/types/bots_and_keyboards/callback_query.py @@ -107,11 +107,10 @@ class CallbackQuery(Object, Update): client, callback_query.message, users, - chats, + {}, is_scheduled=False, replies=0, - business_connection_id=callback_query.connection_id, - raw_reply_to_message=getattr(callback_query, "reply_to_message", None) + business_connection_id=callback_query.connection_id ) # Try to decode callback query data into string. If that fails, fallback to bytes instead of decoding by # ignoring/replacing errors, this way, button clicks will still work.