mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 05:04: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