Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 298d361

Browse files
authored
Store "me" user object before starting dispatcher (#1042)
1 parent d1e8b3b commit 298d361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyrogram/methods/auth/initialize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ async def initialize(
4444

4545
self.load_plugins()
4646

47-
await self.dispatcher.start()
48-
4947
self.me = await self.get_me()
5048

49+
await self.dispatcher.start()
50+
5151
self.is_initialized = True

0 commit comments

Comments
 (0)