Interface InputInlineResultPhoto

Inline result containing a photo

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

interface InputInlineResultPhoto {
    description?: string;
    height?: number;
    id: string;
    media: string | RawInputPhoto | RawInputWebDocument;
    message?: InputInlineMessage;
    thumb?: string | RawInputWebDocument;
    title?: string;
    type: "photo";
    width?: number;
}

Hierarchy (view full)

Properties

description?: string

Description of the result

height?: number

Height of the photo in pixels

id: string

Unique ID of the result

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

thumb?: string | RawInputWebDocument

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

media

title?: string

Title of the result

type: "photo"
width?: number

Width of the photo in pixels