mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +00:00
CallbackQuery must deal with bytes instead of strings
This commit is contained in:
parent
6292fe8f86
commit
17b166e6a6
2 changed files with 2 additions and 2 deletions
|
|
@ -917,7 +917,7 @@ async 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…
Reference in a new issue