Interface InputInlineResultVoice

Inline result containing a voice note

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

interface InputInlineResultVoice {
    duration?: number;
    id: string;
    media: string | RawInputDocument | RawInputWebDocument;
    message?: InputInlineMessage;
    title: string;
    type: "voice";
}

Hierarchy (view full)

Properties

duration?: number

Duration of the voice note in seconds

id: string

Unique ID of the result

The voice itself (.ogg, preferably encoded with OPUS)

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

title: string

Title of the result

type: "voice"