Skip to content

Commit

Permalink
Fix tiny error in a docstring for #764
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Apr 15, 2018
1 parent 53f7b60 commit 6893359
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion telethon/telegram_client.py
Expand Up @@ -2486,7 +2486,11 @@ def get_input_entity(self, peer):
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()
Expand Down

0 comments on commit 6893359

Please sign in to comment.