mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +00:00
Fix a bug with get_session
* Fix a bug InputBotInlineMessageID's dc_id being the same with Client's dc_id. --------- https://github.com/KurimuzonAkuma/pyrogram/pull/76 Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com> Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
ff69bbaf3b
commit
4795bdbd5b
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ async def get_session(client: "pyrogram.Client", dc_id: int):
|
|||
|
||||
await session.start()
|
||||
|
||||
if dc_id == await client.storage.dc_id():
|
||||
return session
|
||||
|
||||
for _ in range(3):
|
||||
exported_auth = await client.invoke(
|
||||
raw.functions.auth.ExportAuthorization(
|
||||
|
|
|
|||
Loading…
Reference in a new issue