SendMediaGroupRequest

data class SendMediaGroupRequest(chat_id: String, media: List<InputMedia>, disable_notification: Boolean?, reply_to_message_id: Long?, allow_sending_without_reply: Boolean?) : TelegramRequest

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.

Constructors

SendMediaGroupRequest
Link copied to clipboard
fun SendMediaGroupRequest(chat_id: String, media: List<InputMedia>, disable_notification: Boolean? = null, reply_to_message_id: Long? = null, allow_sending_without_reply: Boolean? = null)

Properties

allow_sending_without_reply
Link copied to clipboard
val allow_sending_without_reply: Boolean? = null
Pass True, if the message should be sent even if the specified replied-to message is not found
chat_id
Link copied to clipboard
val chat_id: String
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
disable_notification
Link copied to clipboard
val disable_notification: Boolean? = null
Sends messages
media
Link copied to clipboard
val media: List<InputMedia>
A JSON-serialized array describing messages to be sent, must include 2-10 items
reply_to_message_id
Link copied to clipboard
val reply_to_message_id: Long? = null
If the messages are a reply, ID of the original message