mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Move get_me() call into start()
This commit is contained in:
parent
862285e1e6
commit
2870ae84e7
@ -44,8 +44,6 @@ class Initialize:
|
||||
|
||||
self.load_plugins()
|
||||
|
||||
self.me = await self.get_me()
|
||||
|
||||
await self.dispatcher.start()
|
||||
|
||||
self.is_initialized = True
|
||||
|
@ -71,4 +71,6 @@ class Start:
|
||||
raise
|
||||
else:
|
||||
await self.initialize()
|
||||
self.me = await self.get_me()
|
||||
|
||||
return self
|
||||
|
Loading…
x
Reference in New Issue
Block a user