mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-19 03:26:39 +00: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):
|
if isinstance(entity, InputUser):
|
||||||
return InputPeerUser(entity.user_id, entity.access_hash)
|
return InputPeerUser(entity.user_id, entity.access_hash)
|
||||||
|
|
||||||
|
if isinstance(entity, InputUserSelf):
|
||||||
|
return InputPeerSelf()
|
||||||
|
|
||||||
if isinstance(entity, UserFull):
|
if isinstance(entity, UserFull):
|
||||||
return get_input_peer(entity.user)
|
return get_input_peer(entity.user)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user