Fix tiny bug regarding .get_me(input_peer=True) crashing events

This commit is contained in:
Lonami Exo 2018-02-24 18:30:09 +01:00
parent 9ef75e5070
commit cfc5ecfded

View File

@ -488,7 +488,8 @@ class TelegramClient(TelegramBareClient):
self._self_input_peer = utils.get_input_peer(
me, allow_self=False
)
return me
return self._self_input_peer if input_peer else me
except UnauthorizedError:
return None