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(