mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 19:03:46 +03:00
Fix sign in not saving self user to session file
This commit is contained in:
parent
7a7923b317
commit
f4ea662fdd
|
@ -122,6 +122,8 @@ class MemorySession(Session):
|
|||
entities = tlo
|
||||
else:
|
||||
entities = []
|
||||
if hasattr(tlo, 'user'):
|
||||
entities.append(tlo.user)
|
||||
if hasattr(tlo, 'chats') and utils.is_list_like(tlo.chats):
|
||||
entities.extend(tlo.chats)
|
||||
if hasattr(tlo, 'users') and utils.is_list_like(tlo.users):
|
||||
|
|
Loading…
Reference in New Issue
Block a user