mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-24 16:24:15 +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:
|
else:
|
||||||
return InputUser(entity.id, entity.access_hash)
|
return InputUser(entity.id, entity.access_hash)
|
||||||
|
|
||||||
if isinstance(entity, UserEmpty):
|
if isinstance(entity, InputPeerSelf):
|
||||||
|
return InputUserSelf()
|
||||||
|
|
||||||
|
if isinstance(entity, (UserEmpty, InputPeerEmpty)):
|
||||||
return InputUserEmpty()
|
return InputUserEmpty()
|
||||||
|
|
||||||
if isinstance(entity, UserFull):
|
if isinstance(entity, UserFull):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user