From 656e5036c140fafab78a5c07c244a7622f64147f Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 6 Jun 2018 12:28:25 +0200 Subject: [PATCH] Fix callback query id not being a string --- pyrogram/client/ext/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index 1feac5a8..d9956ca5 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -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),