mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 19:33:45 +03:00
Fix process_entities not working on list of entities
This commit is contained in:
parent
d2e244817a
commit
10eca82143
|
@ -30,6 +30,10 @@ class EntityDatabase:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Save all input entities we know of
|
# Save all input entities we know of
|
||||||
|
if not isinstance(tlobject, TLObject) and hasattr(tlobject, '__iter__'):
|
||||||
|
# This may be a list of users already for instance
|
||||||
|
return self.expand(tlobject)
|
||||||
|
|
||||||
entities = []
|
entities = []
|
||||||
if hasattr(tlobject, 'chats') and hasattr(tlobject.chats, '__iter__'):
|
if hasattr(tlobject, 'chats') and hasattr(tlobject.chats, '__iter__'):
|
||||||
entities.extend(tlobject.chats)
|
entities.extend(tlobject.chats)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user