Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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>`_
Expand Down
16 changes: 8 additions & 8 deletions telegram/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand Down
16 changes: 8 additions & 8 deletions telegram/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand Down