VoiceFile

@Serializable
data class VoiceFile(val fileId: FileId, val fileUniqueId: TgFileUniqueId, val duration: Long? = null, val mimeType: MimeType? = null, val fileSize: Long? = null) : TelegramMediaFile, MimedMediaFile, PlayableMediaFile, MediaContentVariant

Constructors

Link copied to clipboard
constructor(fileId: FileId, fileUniqueId: TgFileUniqueId, duration: Long? = null, mimeType: MimeType? = null, fileSize: Long? = 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_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

Functions

Link copied to clipboard
fun VoiceFile.asAudioFile(performer: String? = null, title: String? = null, fileName: String? = null): AudioFile
Link copied to clipboard