mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-30 23:47:33 +03:00 
			
		
		
		
	Add missing InputUserSelf case to .get_input_peer()
This commit is contained in:
		
							parent
							
								
									84d48ef7bf
								
							
						
					
					
						commit
						08abef78d6
					
				|  | @ -99,6 +99,9 @@ def get_input_peer(entity, allow_self=True): | |||
|     if isinstance(entity, InputUser): | ||||
|         return InputPeerUser(entity.user_id, entity.access_hash) | ||||
| 
 | ||||
|     if isinstance(entity, InputUserSelf): | ||||
|         return InputPeerSelf() | ||||
| 
 | ||||
|     if isinstance(entity, UserFull): | ||||
|         return get_input_peer(entity.user) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user