diff --git a/pyrogram/methods/messages/edit_inline_media.py b/pyrogram/methods/messages/edit_inline_media.py index 000a0660..f607462d 100644 --- a/pyrogram/methods/messages/edit_inline_media.py +++ b/pyrogram/methods/messages/edit_inline_media.py @@ -117,5 +117,6 @@ class EditInlineMedia(Scaffold): media=media, reply_markup=reply_markup.write() if reply_markup else None, **await self.parser.parse(caption, parse_mode) - ) + ), + sleep_threshold=self.sleep_threshold ) diff --git a/pyrogram/methods/messages/edit_inline_reply_markup.py b/pyrogram/methods/messages/edit_inline_reply_markup.py index 26fa22cf..8213c86e 100644 --- a/pyrogram/methods/messages/edit_inline_reply_markup.py +++ b/pyrogram/methods/messages/edit_inline_reply_markup.py @@ -62,5 +62,6 @@ class EditInlineReplyMarkup(Scaffold): raw.functions.messages.EditInlineBotMessage( id=unpacked, reply_markup=reply_markup.write() if reply_markup else None, - ) + ), + sleep_threshold=self.sleep_threshold ) diff --git a/pyrogram/methods/messages/edit_inline_text.py b/pyrogram/methods/messages/edit_inline_text.py index e6f5d113..4558da57 100644 --- a/pyrogram/methods/messages/edit_inline_text.py +++ b/pyrogram/methods/messages/edit_inline_text.py @@ -84,5 +84,6 @@ class EditInlineText(Scaffold): no_webpage=disable_web_page_preview or None, reply_markup=reply_markup.write() if reply_markup else None, **await self.parser.parse(text, parse_mode) - ) + ), + sleep_threshold=self.sleep_threshold ) diff --git a/pyrogram/methods/messages/inline_session.py b/pyrogram/methods/messages/inline_session.py index 681ea14f..4ad72010 100644 --- a/pyrogram/methods/messages/inline_session.py +++ b/pyrogram/methods/messages/inline_session.py @@ -51,7 +51,7 @@ async def get_session(client: "pyrogram.Client", dc_id: int): await session.start() for _ in range(3): - exported_auth = await session.send( + exported_auth = await client.send( raw.functions.auth.ExportAuthorization( dc_id=dest_dc_id )