sendMediaGroup

suspend fun TelegramBotApiClient.sendMediaGroup(requestBody: SendMediaGroupRequest): TelegramResponse<List<Message>>

Use this method to send a group of 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 Messages that were sent is returned.

suspend fun TelegramBotApiClient.sendMediaGroup(chatId: Int, media: List<InputMedia> = emptyList(), disableNotification: Boolean = false, replyToMessageId: Int? = null, allowSendingWithoutReply: Boolean = false): TelegramResponse<List<Message>>

Use this method to send a group of 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 Messages that were sent is returned.

Parameters

chatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

media

A JSON-serialized array describing messages to be sent, must include 2-10 items

disableNotification

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

replyToMessageId

If the messages are a reply, ID of the original message

allowSendingWithoutReply

Pass True, if the message should be sent even if the specified replied-to message is not found