AudioFile

@Serializable
data class AudioFile(val fileId: FileId, val fileUniqueId: TgFileUniqueId, val duration: Long? = null, val performer: String? = null, val title: String? = null, val fileName: String? = null, val mimeType: MimeType? = null, val fileSize: Long? = null, val thumbnail: PhotoSize? = null) : TelegramMediaFile, CustomNamedMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, TitledMediaFile, Performerable, MediaContentVariant

Constructors

Link copied to clipboard
constructor(fileId: FileId, fileUniqueId: TgFileUniqueId, duration: Long? = null, performer: String? = null, title: String? = null, fileName: String? = null, mimeType: MimeType? = null, fileSize: Long? = null, thumbnail: PhotoSize? = null)

Properties

Link copied to clipboard
@SerialName(value = "duration")
open override val duration: Long? = null
Link copied to clipboard
@SerialName(value = "file_id")
open override val fileId: FileId
Link copied to clipboard
@SerialName(value = "file_name")
open override val fileName: String? = null
Link copied to clipboard
@SerialName(value = "file_size")
open override val fileSize: Long? = null
Link copied to clipboard
@SerialName(value = "file_unique_id")
open override val fileUniqueId: TgFileUniqueId
Link copied to clipboard
@SerialName(value = "mime_type")
open override val mimeType: MimeType? = null
Link copied to clipboard
@SerialName(value = "performer")
open override val performer: String? = null
Link copied to clipboard
@SerialName(value = "thumbnail")
open override val thumbnail: PhotoSize? = null
Link copied to clipboard
@SerialName(value = "title")
open override val title: String? = null

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun AudioFile.toTelegramMediaAudio(textSources: TextSourcesList = emptyList(), title: String? = this.title): TelegramMediaAudio
fun AudioFile.toTelegramMediaAudio(text: String? = null, parseMode: ParseMode? = null, title: String? = this.title): TelegramMediaAudio