All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.ciogram.client.ktor.methods.SendMediaGroup.kt Maven / Gradle / Ivy

package io.ciogram.client.ktor.methods

import io.ciogram.types.*
import io.ktor.client.request.forms.*
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
internal data class SendMediaGroup(
    @SerialName("chat_id") val chatId: String,
    val media: List,
    @SerialName("disable_notification") val disableNotification: Boolean? = null,
    @SerialName("protect_content") val protectContent: Boolean? = null,
    @SerialName("reply_to_message_id") val replyToMessageId: Int? = null,
    @SerialName("allow_sending_without_reply") val allowSendingWithoutReply: Boolean? = null
) : BinaryDataContainer {
    override fun asFormData() = formData {
        append("chat_id", chatId)
        append("media", media = media)
        append("disable_notification", disableNotification)
        append("protect_content", protectContent)
        append("reply_to_message_id", replyToMessageId)
        append("allow_sending_without_reply", allowSendingWithoutReply)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy