From 6893359f9dca0174765dd0299fbf78f2f9070585 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 15 Apr 2018 16:21:15 +0200 Subject: [PATCH] Fix tiny error in a docstring for #764 --- telethon/telegram_client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index 4d2fd54f..594b05cb 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -2486,7 +2486,11 @@ class TelegramClient(TelegramBareClient): a ValueError will be raised. Returns: - :tl:`InputPeerUser`, :tl:`InputPeerChat` or :tl:`InputPeerChannel`. + :tl:`InputPeerUser`, :tl:`InputPeerChat` or :tl:`InputPeerChannel` + or :tl:`InputPeerSelf` if the parameter is ``'me'`` or ``'self'``. + + If you need to get the ID of yourself, you should use + `get_me` with ``input_peer=True``) instead. """ if peer in ('me', 'self'): return InputPeerSelf()