VoiceContent

@Serializable
data class VoiceContent(val media: VoiceFile, val text: String? = null, val textSources: TextSourcesList = emptyList()) : TextedMediaContent

Constructors

Link copied to clipboard
constructor(media: VoiceFile, text: String? = null, textSources: TextSourcesList = emptyList())

Properties

Link copied to clipboard
open override val media: VoiceFile
Link copied to clipboard
open override val text: String? = null
Link copied to clipboard
open override val textSources: TextSourcesList

Full list of TextSources

Functions

Link copied to clipboard
Link copied to clipboard
open override fun asTelegramMedia(): TelegramMediaAudio
Link copied to clipboard
open override fun createResend(chatId: ChatIdentifier, messageThreadId: MessageThreadId?, disableNotification: Boolean, protectContent: Boolean, replyToMessageId: MessageId?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<VoiceContent>>