mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-30 23:47:33 +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: |         try: | ||||||
|             p = utils.get_input_peer(e, allow_self=False) |             p = utils.get_input_peer(e, allow_self=False) | ||||||
|             marked_id = utils.get_peer_id(p) |             marked_id = utils.get_peer_id(p) | ||||||
|         except ValueError: |         except TypeError: | ||||||
|             return |             return | ||||||
| 
 | 
 | ||||||
|         if isinstance(p, (InputPeerUser, InputPeerChannel)): |         if isinstance(p, (InputPeerUser, InputPeerChannel)): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user