Audio

data class Audio(file_id: String, file_unique_id: String, duration: Long, performer: String?, title: String?, file_name: String?, mime_type: String?, file_size: Long?, thumb: PhotoSize?) : TelegramModel

This object represents an audio file to be treated as music by the Telegram clients.

Constructors

Audio
Link copied to clipboard
fun Audio(file_id: String, file_unique_id: String, duration: Long, performer: String? = null, title: String? = null, file_name: String? = null, mime_type: String? = null, file_size: Long? = null, thumb: PhotoSize? = null)
Creates a Audio.

Properties

duration
Link copied to clipboard
val duration: Long
Duration of the audio in seconds as defined by sender
file_id
Link copied to clipboard
val file_id: String
Identifier for this file, which can be used to download or reuse the file
file_name
Link copied to clipboard
val file_name: String? = null
Optional.
file_size
Link copied to clipboard
val file_size: Long? = null
Optional.
file_unique_id
Link copied to clipboard
val file_unique_id: String
Unique identifier for this file, which is supposed to be the same over time and for different bots.
mime_type
Link copied to clipboard
val mime_type: String? = null
Optional.
performer
Link copied to clipboard
val performer: String? = null
Optional.
thumb
Link copied to clipboard
val thumb: PhotoSize? = null
Optional.
title
Link copied to clipboard
val title: String? = null
Optional.