mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-30 15:37:30 +03:00 
			
		
		
		
	Except the right type for get_input_peer (closes #722)
This commit is contained in:
		
							parent
							
								
									43c6896481
								
							
						
					
					
						commit
						898e550335
					
				|  | @ -78,7 +78,7 @@ class MemorySession(Session): | |||
|         try: | ||||
|             p = utils.get_input_peer(e, allow_self=False) | ||||
|             marked_id = utils.get_peer_id(p) | ||||
|         except ValueError: | ||||
|         except TypeError: | ||||
|             return | ||||
| 
 | ||||
|         if isinstance(p, (InputPeerUser, InputPeerChannel)): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user