Skip to content

Commit

Permalink
pyrofork: fix CallbackQuery parser errors
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Jul 14, 2024
1 parent ed758ec commit 30e7b45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyrogram/types/bots_and_keyboards/callback_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@ async def _parse(client: "pyrogram.Client", callback_query, users) -> "CallbackQ
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.
Expand Down

0 comments on commit 30e7b45

Please sign in to comment.