SendMediaGroupRequest

data class SendMediaGroupRequest(chatId: Int, media: List<InputMedia>, disableNotification: Boolean, replyToMessageId: Int?, allowSendingWithoutReply: Boolean)

Request body for sendMediaGroup

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

Constructors

SendMediaGroupRequest
Link copied to clipboard
common
fun SendMediaGroupRequest(chatId: Int, media: List<InputMedia> = emptyList(), disableNotification: Boolean = false, replyToMessageId: Int? = null, allowSendingWithoutReply: Boolean = false)
Unique identifier for the target chat or username of the target channel (in the format @channelusername)

Functions

component1
Link copied to clipboard
common
operator fun component1(): Int
component2
Link copied to clipboard
common
operator fun component2(): List<InputMedia>
component3
Link copied to clipboard
common
operator fun component3(): Boolean
component4
Link copied to clipboard
common
operator fun component4(): Int?
component5
Link copied to clipboard
common
operator fun component5(): Boolean
copy
Link copied to clipboard
common
fun copy(chatId: Int, media: List<InputMedia> = emptyList(), disableNotification: Boolean = false, replyToMessageId: Int? = null, allowSendingWithoutReply: Boolean = false): SendMediaGroupRequest
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

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