Skip to content
Merged
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
13 changes: 9 additions & 4 deletions telegram/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@
VideoNote,
Voice,
WebhookInfo,
InputMediaAudio,
InputMediaDocument,
InputMediaPhoto,
InputMediaVideo,
)
from telegram.constants import MAX_INLINE_QUERY_RESULTS
from telegram.error import InvalidToken, TelegramError
Expand Down Expand Up @@ -1249,7 +1253,7 @@ def send_voice(
def send_media_group(
self,
chat_id: Union[int, str],
media: List[InputMedia],
media: List[Union[InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo]],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better!

disable_notification: bool = None,
reply_to_message_id: Union[int, str] = None,
timeout: float = 20,
Expand All @@ -1260,8 +1264,9 @@ def send_media_group(
Args:
chat_id (:obj:`int` | :obj:`str`): Unique identifier for the target chat or username
of the target channel (in the format @channelusername).
media (List[:class:`telegram.InputMedia`]): An array describing photos and videos to be
sent, must include 2–10 items.
media (List[:class:`telegram.InputMediaAudio`, :class:`telegram.InputMediaDocument`, \
:class:`telegram.InputMediaPhoto`, :class:`telegram.InputMediaVideo`]): An array
describing messages to be sent, must include 2–10 items.
disable_notification (:obj:`bool`, optional): Sends the message silently. Users will
receive a notification with no sound.
reply_to_message_id (:obj:`int`, optional): If the message is a reply, ID of the
Expand Down Expand Up @@ -2896,7 +2901,7 @@ def set_game_score(

Raises:
:class:`telegram.TelegramError`: If the new score is not greater than the user's
current score in the chat and force is :obj:`False`.
current score in the chat and force is :obj:`False`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixing rendering mistakes is tight!


"""
data: JSONDict = {'user_id': user_id, 'score': score}
Expand Down