mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-30 23:47:33 +03:00 
			
		
		
		
	Fix .get_input_entity excepting wrong type
This commit is contained in:
		
							parent
							
								
									b6b47d175c
								
							
						
					
					
						commit
						3512028d0f
					
				|  | @ -1079,7 +1079,7 @@ class TelegramClient(TelegramBareClient): | |||
|         try: | ||||
|             # First try to get the entity from cache, otherwise figure it out | ||||
|             return self.session.get_input_entity(peer) | ||||
|         except KeyError: | ||||
|         except ValueError: | ||||
|             pass | ||||
| 
 | ||||
|         if isinstance(peer, str): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user