mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Add missing InputPeerSelf case to .get_input_user
This commit is contained in:
parent
1f1e040af9
commit
d58c729af0
|
@ -142,7 +142,10 @@ def get_input_user(entity):
|
|||
else:
|
||||
return InputUser(entity.id, entity.access_hash)
|
||||
|
||||
if isinstance(entity, UserEmpty):
|
||||
if isinstance(entity, InputPeerSelf):
|
||||
return InputUserSelf()
|
||||
|
||||
if isinstance(entity, (UserEmpty, InputPeerEmpty)):
|
||||
return InputUserEmpty()
|
||||
|
||||
if isinstance(entity, UserFull):
|
||||
|
|
Loading…
Reference in New Issue
Block a user