Interface InputInlineResultVideo

Inline result containing a video (only MP4)

If message is not provided, InputInlineMessageMedia is used with empty caption for non-embed videos, InputInlineMessageText is used with text containing the URL for embed videos.

interface InputInlineResultVideo {
    description?: string;
    duration?: number;
    height?: number;
    id: string;
    isEmbed?: boolean;
    media: string | RawInputDocument | RawInputWebDocument;
    message?: InputInlineMessage;
    thumb?: string | RawInputWebDocument;
    title: string;
    type: "video";
    width?: number;
}

Hierarchy (view full)

Properties

description?: string

Description of the result

duration?: number

Duration of the video in seconds

height?: number

Height of the video in pixels

id: string

Unique ID of the result

isEmbed?: boolean

In case media is a URL, whether that URL is a link to an embedded video player.

The video itself, or a page containing an embedded video

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

thumb?: string | RawInputWebDocument

Video thumbnail URL (must be jpeg), only applicable in case media is a URL.

Must be provided explicitly if this is a video loaded by URL.

media

title: string

Title of the result

type: "video"
width?: number

Width of the video in pixels