Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
KurimuzonAkuma committed Jul 21, 2024
1 parent aa9b107 commit 1138ab2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyrogram/methods/messages/inline_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@


async def get_session(client: "pyrogram.Client", dc_id: int) -> Session:
if dc_id == await client.storage.dc_id():
return client.session

async with client.media_sessions_lock:
if client.media_sessions.get(dc_id):
return client.media_sessions[dc_id]
Expand All @@ -36,9 +39,6 @@ async def get_session(client: "pyrogram.Client", dc_id: int) -> Session:

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(
Expand Down

0 comments on commit 1138ab2

Please sign in to comment.