Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed User.chat_id to User.id in docstrings of User.send_* methods in user.py #1081

Merged
merged 4 commits into from Apr 25, 2018
Merged
Diff settings

Always

Just for now

@@ -64,6 +64,7 @@ The following wonderful people contributed directly or indirectly to this projec
- `Simon Schürrle <https://github.com/SitiSchu>`_
- `sooyhwang <https://github.com/sooyhwang>`_
- `thodnev <https://github.com/thodnev>`_
- `Trainer Jono <https://github.com/Tr-Jono>`_
- `Valentijn <https://github.com/Faalentijn>`_
- `voider1 <https://github.com/voider1>`_
- `Wagner Macedo <https://github.com/wagnerluis1982>`_
@@ -216,7 +216,7 @@ def unban_member(self, *args, **kwargs):
def send_message(self, *args, **kwargs):
"""Shortcut for::
bot.send_message(Chat.chat_id, *args, **kwargs)
bot.send_message(Chat.id, *args, **kwargs)
Where Chat is the current instance.
@@ -229,7 +229,7 @@ def send_message(self, *args, **kwargs):
def send_photo(self, *args, **kwargs):
"""Shortcut for::
bot.send_photo(Chat.chat_id, *args, **kwargs)
bot.send_photo(Chat.id, *args, **kwargs)
Where Chat is the current instance.
@@ -242,7 +242,7 @@ def send_photo(self, *args, **kwargs):
def send_audio(self, *args, **kwargs):
"""Shortcut for::
bot.send_audio(Chat.chat_id, *args, **kwargs)
bot.send_audio(Chat.id, *args, **kwargs)
Where Chat is the current instance.
@@ -255,7 +255,7 @@ def send_audio(self, *args, **kwargs):
def send_document(self, *args, **kwargs):
"""Shortcut for::
bot.send_document(Chat.chat_id, *args, **kwargs)
bot.send_document(Chat.id, *args, **kwargs)
Where Chat is the current instance.
@@ -268,7 +268,7 @@ def send_document(self, *args, **kwargs):
def send_sticker(self, *args, **kwargs):
"""Shortcut for::
bot.send_sticker(Chat.chat_id, *args, **kwargs)
bot.send_sticker(Chat.id, *args, **kwargs)
Where Chat is the current instance.
@@ -281,7 +281,7 @@ def send_sticker(self, *args, **kwargs):
def send_video(self, *args, **kwargs):
"""Shortcut for::
bot.send_video(Chat.chat_id, *args, **kwargs)
bot.send_video(Chat.id, *args, **kwargs)
Where Chat is the current instance.
@@ -294,7 +294,7 @@ def send_video(self, *args, **kwargs):
def send_video_note(self, *args, **kwargs):
"""Shortcut for::
bot.send_video_note(Chat.chat_id, *args, **kwargs)
bot.send_video_note(Chat.id, *args, **kwargs)
Where Chat is the current instance.
@@ -307,7 +307,7 @@ def send_video_note(self, *args, **kwargs):
def send_voice(self, *args, **kwargs):
"""Shortcut for::
bot.send_voice(Chat.chat_id, *args, **kwargs)
bot.send_voice(Chat.id, *args, **kwargs)
Where Chat is the current instance.
@@ -150,7 +150,7 @@ def mention_html(self, name=None):
def send_message(self, *args, **kwargs):
"""Shortcut for::
bot.send_message(User.chat_id, *args, **kwargs)
bot.send_message(User.id, *args, **kwargs)
Where User is the current instance.
@@ -163,7 +163,7 @@ def send_message(self, *args, **kwargs):
def send_photo(self, *args, **kwargs):
"""Shortcut for::
bot.send_photo(User.chat_id, *args, **kwargs)
bot.send_photo(User.id, *args, **kwargs)
Where User is the current instance.
@@ -176,7 +176,7 @@ def send_photo(self, *args, **kwargs):
def send_audio(self, *args, **kwargs):
"""Shortcut for::
bot.send_audio(User.chat_id, *args, **kwargs)
bot.send_audio(User.id, *args, **kwargs)
Where User is the current instance.
@@ -189,7 +189,7 @@ def send_audio(self, *args, **kwargs):
def send_document(self, *args, **kwargs):
"""Shortcut for::
bot.send_document(User.chat_id, *args, **kwargs)
bot.send_document(User.id, *args, **kwargs)
Where User is the current instance.
@@ -202,7 +202,7 @@ def send_document(self, *args, **kwargs):
def send_sticker(self, *args, **kwargs):
"""Shortcut for::
bot.send_sticker(User.chat_id, *args, **kwargs)
bot.send_sticker(User.id, *args, **kwargs)
Where User is the current instance.
@@ -215,7 +215,7 @@ def send_sticker(self, *args, **kwargs):
def send_video(self, *args, **kwargs):
"""Shortcut for::
bot.send_video(User.chat_id, *args, **kwargs)
bot.send_video(User.id, *args, **kwargs)
Where User is the current instance.
@@ -228,7 +228,7 @@ def send_video(self, *args, **kwargs):
def send_video_note(self, *args, **kwargs):
"""Shortcut for::
bot.send_video_note(User.chat_id, *args, **kwargs)
bot.send_video_note(User.id, *args, **kwargs)
Where User is the current instance.
@@ -241,7 +241,7 @@ def send_video_note(self, *args, **kwargs):
def send_voice(self, *args, **kwargs):
"""Shortcut for::
bot.send_voice(User.chat_id, *args, **kwargs)
bot.send_voice(User.id, *args, **kwargs)
Where User is the current instance.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.