mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
pyrofork: fix CallbackQuery parser errors
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
fb2d49efbd
commit
9d0c11caf5
1 changed files with 2 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue