InlineQueryResultPhoto

fun InlineQueryResultPhoto(id: String, photoUrl: String, thumbUrl: String, photoWidth: Int? = null, photoHeight: Int? = null, title: String? = null, description: String? = null, caption: String? = null, parseMode: String? = null, captionEntities: List<MessageEntity> = emptyList(), replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String)

Parameters

id

Unique identifier for this result, 1-64 bytes

photoUrl

A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB

thumbUrl

URL of the thumbnail for the photo

photoWidth

Optional. Width of the photo

photoHeight

Optional. Height of the photo

title

Optional. Title for the result

description

Optional. Short description of the result

caption

Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing

parseMode

Optional. Mode for parsing entities in the photo caption. See formatting options for more details.

captionEntities

Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode

replyMarkup

Optional. Inline keyboard attached to the message

inputMessageContent

Optional. Content of the message to be sent instead of the photo

type

Type of the result, must be photo