Interface InputMessageAudio

An audio message. Subtype of InputMessageContent.

interface InputMessageAudio {
    @type: "inputMessageAudio";
    album_cover_thumbnail: InputThumbnail;
    audio: InputFile;
    caption: FormattedText;
    duration: number;
    performer: string;
    title: string;
}

Properties

@type: "inputMessageAudio"
album_cover_thumbnail: InputThumbnail

Thumbnail of the cover for the album; pass null to skip thumbnail uploading.

audio: InputFile

Audio file to be sent.

caption: FormattedText

Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

duration: number

Duration of the audio, in seconds; may be replaced by the server.

performer: string

Performer of the audio; 0-64 characters, may be replaced by the server.

title: string

Title of the audio; 0-64 characters; may be replaced by the server.