mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-30 23:47:33 +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 | ||||
| 
 | ||||
|         # 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 = [] | ||||
|         if hasattr(tlobject, 'chats') and hasattr(tlobject.chats, '__iter__'): | ||||
|             entities.extend(tlobject.chats) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user