diff --git a/telethon/sessions/memory.py b/telethon/sessions/memory.py index a786316d..2bc973aa 100644 --- a/telethon/sessions/memory.py +++ b/telethon/sessions/memory.py @@ -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):