TgKit library and website are still in early development!

Audio Class

extends Base

Represents an audio file to be treated as music by the Telegram clients

Properties

client Client

See the code

duration number

Duration of the video in seconds as defined by sender

See the code

fileId string

Identifier for this file, which can be used to download or reuse the file

See the code

fileName string

Original filename as defined by sender

See the code

fileSize number

File size in bytes

See the code

fileUniqueId string

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

See the code

mimeType string

MIME type of the file as defined by sender

See the code

performer string

Performer of the audio as defined by sender or by audio tags

See the code

thumbnail PhotoSize

Thumbnail of the album cover to which the music file belongs

See the code

title string

Title of the audio as defined by sender or by audio tags

See the code