Skip to content

Commit 47b25b0

Browse files
committed
CallbackQuery must deal with bytes instead of strings
1 parent 7047036 commit 47b25b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyrogram/client/ext/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ def parse_callback_query(client, update, users):
905905
message=message,
906906
inline_message_id=inline_message_id,
907907
chat_instance=str(update.chat_instance),
908-
data=update.data.decode(),
908+
data=update.data,
909909
game_short_name=update.game_short_name,
910910
client=client
911911
)

pyrogram/client/types/bots/callback_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(
6060
client=None,
6161
message=None,
6262
inline_message_id: str = None,
63-
data: str = None,
63+
data: bytes = None,
6464
game_short_name: str = None
6565
):
6666
self._client = client

0 commit comments

Comments
 (0)