mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +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.load_plugins()
|
||||||
|
|
||||||
self.me = await self.get_me()
|
|
||||||
|
|
||||||
await self.dispatcher.start()
|
await self.dispatcher.start()
|
||||||
|
|
||||||
self.is_initialized = True
|
self.is_initialized = True
|
||||||
|
@ -71,4 +71,6 @@ class Start:
|
|||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
await self.initialize()
|
await self.initialize()
|
||||||
|
self.me = await self.get_me()
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user