CallbackQuery must deal with bytes instead of strings
This commit is contained in:
parent
6292fe8f86
commit
17b166e6a6
@ -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 New Issue
Block a user