Actually fix inline callback queries coming from different DCs

This commit is contained in:
Dan 2020-08-27 14:12:51 +02:00
parent c0049ba43b
commit 50c6207099
4 changed files with 7 additions and 4 deletions

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)