mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Add missing InputPeerSelf case to .get_input_user
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user