Interface InputInlineResultGif

Inline result containing an animation (silent mp4 or gif).

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

interface InputInlineResultGif {
    description?: string;
    duration?: number;
    height?: number;
    id: string;
    media: string | RawInputDocument | RawInputWebDocument;
    message?: InputInlineMessage;
    mime?: string;
    thumb?: string | RawInputWebDocument;
    thumbMime?: string;
    title?: string;
    type: "gif";
    width?: number;
}

Hierarchy (view full)

Properties

description?: string

Title of the result

duration?: number

Duration of the animation in seconds

height?: number

Height of the animation in pixels

id: string

Unique ID of the result

The animation 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

Media MIME type, only applicable to URLs.

Usually unnecessary, since Telegram automatically infers it.

video/mp4

thumb?: string | RawInputWebDocument

Animation thumbnail URL, only applicable in case media is a URL

media

thumbMime?: string

Thumbnail MIME type

image/jpeg

title?: string

Title of the result

type: "gif"
width?: number

Width of the animation in pixels