mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
CallbackQuery must deal with bytes instead of strings
This commit is contained in:
parent
70470360b1
commit
47b25b0e2d
2 changed files with 2 additions and 2 deletions
|
|
@ -905,7 +905,7 @@ def parse_callback_query(client, update, users):
|
||||||
message=message,
|
message=message,
|
||||||
inline_message_id=inline_message_id,
|
inline_message_id=inline_message_id,
|
||||||
chat_instance=str(update.chat_instance),
|
chat_instance=str(update.chat_instance),
|
||||||
data=update.data.decode(),
|
data=update.data,
|
||||||
game_short_name=update.game_short_name,
|
game_short_name=update.game_short_name,
|
||||||
client=client
|
client=client
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ class CallbackQuery(Object):
|
||||||
client=None,
|
client=None,
|
||||||
message=None,
|
message=None,
|
||||||
inline_message_id: str = None,
|
inline_message_id: str = None,
|
||||||
data: str = None,
|
data: bytes = None,
|
||||||
game_short_name: str = None
|
game_short_name: str = None
|
||||||
):
|
):
|
||||||
self._client = client
|
self._client = client
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue