ski.gagar.vxutil.vertigram.methods.SendAudio.kt Maven / Gradle / Ivy
The newest version!
package ski.gagar.vxutil.vertigram.methods
import ski.gagar.vertigram.annotations.TgMethod
import ski.gagar.vxutil.vertigram.throttling.HasChatId
import ski.gagar.vxutil.vertigram.throttling.Throttled
import ski.gagar.vxutil.vertigram.types.*
import ski.gagar.vxutil.vertigram.types.attachments.Attachment
import ski.gagar.vxutil.vertigram.util.multipart.TgMedia
import java.time.Duration
@TgMethod
@Throttled
data class SendAudio(
override val chatId: ChatId,
@TgMedia
val audio: Attachment,
val caption: String? = null,
val parseMode: ParseMode? = null,
val captionEntities: List? = null,
val duration: Duration? = null,
val performer: String? = null,
val title: String? = null,
val thumbnail: Attachment? = null,
val disableNotification: Boolean = false,
val protectContent: Boolean = false,
val replyMarkup: ReplyMarkup? = null,
// Since Telegram Bot Api 6.3
val messageThreadId: Long? = null,
// Since Telegram Bot API 7.0
val replyParameters: ReplyParameters? = null
) : MultipartTgCallable(), HasChatId
© 2015 - 2025 Weber Informatics LLC | Privacy Policy