Interface InputInlineQueryResultPhoto

Represents link to a JPEG image. Subtype of InputInlineQueryResult.

interface InputInlineQueryResultPhoto {
    @type: "inputInlineQueryResultPhoto";
    description: string;
    id: string;
    input_message_content: InputMessageContent;
    photo_height: number;
    photo_url: string;
    photo_width: number;
    reply_markup: ReplyMarkup;
    thumbnail_url: string;
    title: string;
}

Properties

@type: "inputInlineQueryResultPhoto"
description: string

Represents link to a JPEG image.

id: string

Unique identifier of the query result.

input_message_content: InputMessageContent

The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessagePhoto, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.

photo_height: number

Height of the photo.

photo_url: string

The URL of the JPEG photo (photo size must not exceed 5MB).

photo_width: number

Width of the photo.

reply_markup: ReplyMarkup

The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.

thumbnail_url: string

URL of the photo thumbnail, if it exists.

title: string

Title of the result, if known.