Skip to content

Commit 2870ae8

Browse files
committed
Move get_me() call into start()
1 parent 862285e commit 2870ae8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyrogram/methods/auth/initialize.py

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

4545
self.load_plugins()
4646

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

5149
self.is_initialized = True

pyrogram/methods/utilities/start.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,6 @@ async def main():
7171
raise
7272
else:
7373
await self.initialize()
74+
self.me = await self.get_me()
75+
7476
return self

0 commit comments

Comments
 (0)