2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 04:48:06 +00:00

Fix callback query id not being a string

This commit is contained in:
Dan 2018-06-06 12:28:25 +02:00
parent 901b151718
commit 656e5036c1

View File

@ -801,7 +801,7 @@ def parse_callback_query(client, callback_query, users):
peer_id = int("-100" + str(peer.channel_id))
return pyrogram_types.CallbackQuery(
id=callback_query.query_id,
id=str(callback_query.query_id),
from_user=parse_user(users[callback_query.user_id]),
message=client.get_messages(peer_id, callback_query.msg_id),
chat_instance=str(callback_query.chat_instance),