Skip to content

Audio

Type · TDLib 1.8.67 · d1085f9c

Describes an audio file. Audio is usually in MP3 or M4A format

Audio(
  duration: int32,
  title: string,
  performer: string,
  file_name: string,
  mime_type: string,
  album_cover_minithumbnail: Minithumbnail,
  album_cover_thumbnail: Thumbnail,
  external_album_covers: list of Thumbnail,
  audio: File
) → Audio

duration

int32

Duration of the audio, in seconds; as defined by the sender

title

string

Title of the audio; as defined by the sender

performer

string

Performer of the audio; as defined by the sender

file_name

string

Original name of the file; as defined by the sender

mime_type

string

The MIME type of the file; as defined by the sender

album_cover_minithumbnail

Minithumbnail

The minithumbnail of the album cover; may be null

album_cover_thumbnail

Thumbnail

The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be extracted from the downloaded audio file; may be null

external_album_covers

list of Thumbnail

Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate

audio

File

File containing the audio