CallbackQuery must deal with bytes instead of strings

This commit is contained in:
Dan 2018-12-15 11:35:53 +01:00
parent 6292fe8f86
commit 17b166e6a6
2 changed files with 2 additions and 2 deletions

View File

@ -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
)

View File

@ -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