mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-23 15:54:12 +03:00
Fix tiny bug regarding .get_me(input_peer=True) crashing events
This commit is contained in:
parent
9ef75e5070
commit
cfc5ecfded
|
@ -488,7 +488,8 @@ class TelegramClient(TelegramBareClient):
|
||||||
self._self_input_peer = utils.get_input_peer(
|
self._self_input_peer = utils.get_input_peer(
|
||||||
me, allow_self=False
|
me, allow_self=False
|
||||||
)
|
)
|
||||||
return me
|
|
||||||
|
return self._self_input_peer if input_peer else me
|
||||||
except UnauthorizedError:
|
except UnauthorizedError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user