mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-22 04:56:38 +00:00
Fix tiny error in a docstring for #764
This commit is contained in:
parent
53f7b6063c
commit
6893359f9d
@ -2486,7 +2486,11 @@ class TelegramClient(TelegramBareClient):
|
|||||||
a ValueError will be raised.
|
a ValueError will be raised.
|
||||||
|
|
||||||
Returns:
|
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'):
|
if peer in ('me', 'self'):
|
||||||
return InputPeerSelf()
|
return InputPeerSelf()
|
||||||
|
Loading…
Reference in New Issue
Block a user