peyk.platforms.telegram.methods.send_media_group

async peyk.platforms.telegram.methods.send_media_group(self, chat_id: int | str, media: Sequence[InputMediaPhoto | InputMediaVideo | InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaLivePhoto], *, message_thread_id: int | None = None, disable_notification: bool | None = None, protect_content: bool | None = None, reply_parameters: ReplyParameters | Mapping[str, object] | None = None) List[Message][source]

Use this method to send a group of photos, live photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an Array of Message objects that were sent is returned.

Parameters:
  • chat_id – Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username

  • media – A JSON-serialized Array describing messages to be sent, must include 2-10 items

  • message_thread_id – Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only

  • disable_notification – Sends messages silently. Users will receive a notification with no sound.

  • protect_content – Protects the contents of the sent messages from forwarding and saving

  • reply_parameters – Description of the message to reply to

Returns:

Result returned by Telegram on successful execution.

Return type:

List[Message]