Fixed docstring of {User,Chat}.send_* methods (#1081)

* Changed all "User.chat_id"s to "User.id"
* Chat.chat_id --> Chat.id
This commit is contained in:
Trainer Jono 2018-04-26 04:21:11 +08:00 committed by Noam Meltzer
parent 38d6f4d9f2
commit 78fee3c1dc
3 changed files with 17 additions and 16 deletions

View file

@ -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>`_

View file

@ -216,7 +216,7 @@ class Chat(TelegramObject):
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 @@ class Chat(TelegramObject):
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 @@ class Chat(TelegramObject):
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 @@ class Chat(TelegramObject):
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 @@ class Chat(TelegramObject):
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 @@ class Chat(TelegramObject):
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 @@ class Chat(TelegramObject):
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 @@ class Chat(TelegramObject):
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.

View file

@ -150,7 +150,7 @@ class User(TelegramObject):
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 @@ class User(TelegramObject):
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 @@ class User(TelegramObject):
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 @@ class User(TelegramObject):
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 @@ class User(TelegramObject):
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 @@ class User(TelegramObject):
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 @@ class User(TelegramObject):
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 @@ class User(TelegramObject):
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.