From cfc5ecfdedefdb0331301cd2b652090ee204e695 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 24 Feb 2018 18:30:09 +0100 Subject: [PATCH] Fix tiny bug regarding .get_me(input_peer=True) crashing events --- telethon/telegram_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index 55babafe..1e418904 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -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