From f06562b73da3bcd57da06bd68e0ea10820ab2293 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 26 Aug 2020 07:43:57 +0200 Subject: [PATCH] Add missing await keywords --- pyrogram/methods/messages/edit_inline_media.py | 2 +- pyrogram/methods/messages/edit_inline_reply_markup.py | 2 +- pyrogram/methods/messages/edit_inline_text.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/methods/messages/edit_inline_media.py b/pyrogram/methods/messages/edit_inline_media.py index a6a893ae..000a0660 100644 --- a/pyrogram/methods/messages/edit_inline_media.py +++ b/pyrogram/methods/messages/edit_inline_media.py @@ -109,7 +109,7 @@ class EditInlineMedia(Scaffold): unpacked = utils.unpack_inline_message_id(inline_message_id) dc_id = unpacked.dc_id - session = get_session(self, dc_id) + session = await get_session(self, dc_id) return await session.send( raw.functions.messages.EditInlineBotMessage( diff --git a/pyrogram/methods/messages/edit_inline_reply_markup.py b/pyrogram/methods/messages/edit_inline_reply_markup.py index 9905bcf5..26fa22cf 100644 --- a/pyrogram/methods/messages/edit_inline_reply_markup.py +++ b/pyrogram/methods/messages/edit_inline_reply_markup.py @@ -56,7 +56,7 @@ class EditInlineReplyMarkup(Scaffold): unpacked = utils.unpack_inline_message_id(inline_message_id) dc_id = unpacked.dc_id - session = get_session(self, dc_id) + session = await get_session(self, dc_id) return await session.send( raw.functions.messages.EditInlineBotMessage( diff --git a/pyrogram/methods/messages/edit_inline_text.py b/pyrogram/methods/messages/edit_inline_text.py index c1363181..e6f5d113 100644 --- a/pyrogram/methods/messages/edit_inline_text.py +++ b/pyrogram/methods/messages/edit_inline_text.py @@ -76,7 +76,7 @@ class EditInlineText(Scaffold): unpacked = utils.unpack_inline_message_id(inline_message_id) dc_id = unpacked.dc_id - session = get_session(self, dc_id) + session = await get_session(self, dc_id) return await session.send( raw.functions.messages.EditInlineBotMessage(