Documentation - v0.27.0
    Preparing search index...

    Interface InputInlineResultAudio

    Inline result containing an audio file

    If message is not provided, InputInlineMessageMedia is used with empty caption.

    interface InputInlineResultAudio {
        duration?: number;
        id: string;
        media: string | RawInputDocument | RawInputWebDocument;
        message?: InputInlineMessage;
        mime?: string;
        performer?: string;
        title: string;
        type: "audio";
    }

    Hierarchy (View Summary)

    Index

    Properties

    duration?: number

    Duration of the audio in seconds

    id: string

    Unique ID of the result

    The audio itself

    Can be a URL, a TDLib and Bot API compatible File ID, or a TL object representing either of them.

    Message to send when the result is selected.

    By default, is automatically generated, and details about how it is generated can be found in subclasses' description

    mime?: string

    MIME type of the audio file

    Usually unnecessary, since Telegram infers it automatically.

    audio/mpeg

    performer?: string

    Performer of the audio track

    title: string

    Title of the audio track

    type: "audio"