Add missing InputPeerSelf case to .get_input_user

This commit is contained in:
Lonami Exo 2017-10-24 09:42:51 +02:00
parent 1f1e040af9
commit d58c729af0

View File

@ -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):