mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04: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,
|
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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue