forked from uniborg/uniborg
Cache own user object
This commit is contained in:
parent
3660e22036
commit
4c7923dd44
|
@ -40,7 +40,8 @@ class Uniborg(TelegramClient):
|
|||
async def _async_init(self):
|
||||
await self.start()
|
||||
|
||||
self.uid = telethon.utils.get_peer_id(await self.get_me())
|
||||
self.me = await self.get_me()
|
||||
self.uid = telethon.utils.get_peer_id(self.me)
|
||||
|
||||
def run(self):
|
||||
self._loop.run_forever()
|
||||
|
|
Loading…
Reference in New Issue