From 8dfa80ef61085c0f8f2fc31737b154aea361a98b Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 10 Nov 2018 15:29:37 +0100 Subject: [PATCH] Add missing await keyword --- 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 3dc78c60..f01a523c 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -896,7 +896,7 @@ async def parse_callback_query(client, update, users): else: peer_id = int("-100" + str(peer.channel_id)) - message = client.get_messages(peer_id, update.msg_id) + message = await client.get_messages(peer_id, update.msg_id) elif isinstance(update, types.UpdateInlineBotCallbackQuery): inline_message_id = b64encode( pack(