pyrofork: fix CallbackQuery parser errors

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-07-14 19:32:00 +07:00
parent fb2d49efbd
commit 9d0c11caf5
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -107,11 +107,10 @@ class CallbackQuery(Object, Update):
client, client,
callback_query.message, callback_query.message,
users, users,
chats, {},
is_scheduled=False, is_scheduled=False,
replies=0, replies=0,
business_connection_id=callback_query.connection_id, business_connection_id=callback_query.connection_id
raw_reply_to_message=getattr(callback_query, "reply_to_message", None)
) )
# Try to decode callback query data into string. If that fails, fallback to bytes instead of decoding by # 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. # ignoring/replacing errors, this way, button clicks will still work.