mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Call GetState on login to init MessageBox
This commit is contained in:
@@ -559,6 +559,11 @@ class TelegramBaseClient(abc.ABC):
|
||||
LAYER, self._init_request
|
||||
))
|
||||
|
||||
if self._message_box.is_empty():
|
||||
me = await self.get_me()
|
||||
if me:
|
||||
await self._on_login(me) # also calls GetState to initialize the MessageBox
|
||||
|
||||
self._updates_handle = self.loop.create_task(self._update_loop())
|
||||
self._keepalive_handle = self.loop.create_task(self._keepalive_loop())
|
||||
|
||||
|
Reference in New Issue
Block a user