Add missing await keyword

This commit is contained in:
Dan 2018-11-10 15:29:37 +01:00
parent df0de0c85a
commit 8dfa80ef61

View File

@ -896,7 +896,7 @@ async def parse_callback_query(client, update, users):
else: else:
peer_id = int("-100" + str(peer.channel_id)) 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): elif isinstance(update, types.UpdateInlineBotCallbackQuery):
inline_message_id = b64encode( inline_message_id = b64encode(
pack( pack(