mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-27 20:37:54 +00:00
CallbackQuery must deal with bytes instead of strings
This commit is contained in:
parent
70470360b1
commit
47b25b0e2d
@ -905,7 +905,7 @@ def parse_callback_query(client, update, users):
|
||||
message=message,
|
||||
inline_message_id=inline_message_id,
|
||||
chat_instance=str(update.chat_instance),
|
||||
data=update.data.decode(),
|
||||
data=update.data,
|
||||
game_short_name=update.game_short_name,
|
||||
client=client
|
||||
)
|
||||
|
@ -60,7 +60,7 @@ class CallbackQuery(Object):
|
||||
client=None,
|
||||
message=None,
|
||||
inline_message_id: str = None,
|
||||
data: str = None,
|
||||
data: bytes = None,
|
||||
game_short_name: str = None
|
||||
):
|
||||
self._client = client
|
||||
|
Loading…
x
Reference in New Issue
Block a user