telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Interface InputMediaAudio

    Represents an audio file to be treated as music to be sent as part of a media group or edited media.

    interface InputMediaAudio {
        caption?: string;
        caption_entities?: MessageEntity[];
        duration?: number;
        media: string | InputFile;
        parse_mode?: ParseMode;
        performer?: string;
        thumbnail?: string | InputFile;
        title?: string;
        type: "audio";
    }
    Index
    caption?: string

    Caption of the audio to be sent, 0-1024 characters after entities parsing.

    caption_entities?: MessageEntity[]

    List of special entities that appear in the caption.

    duration?: number

    Duration of the audio in seconds.

    media: string | InputFile

    File to send. Pass a file_id to send a file that exists on the Telegram servers, an HTTP URL, or upload using InputFile.

    parse_mode?: ParseMode

    Mode for parsing entities in the audio caption.

    performer?: string

    Performer of the audio.

    thumbnail?: string | InputFile

    Thumbnail of the file sent.

    title?: string

    Title of the audio.

    type: "audio"

    Type of the result, must be 'audio'.