MadelineProto/docs/TD_docs/constructors/inputInlineQueryResultPhoto.md

1.9 KiB

title description
inputInlineQueryResultPhoto Represents link to a jpeg photo

Constructor: inputInlineQueryResultPhoto

Back to constructors index

Represents link to a jpeg photo

Attributes:

Name Type Required Description
id string Yes Unique identifier of this result
title string Yes Title of the result, if known
description string Yes Short description of the result, if known
thumb_url string Yes Url of the photo thumb, if exists
photo_url string Yes Url of the jpeg photo (photo must not exceed 5MB)
photo_width int Yes Width of the photo
photo_height int Yes Height of the photo
reply_markup ReplyMarkup Yes Message reply markup, should be of type replyMarkupInlineKeyboard or null
input_message_content InputMessageContent Yes Content of the message to be sent, should be of type inputMessageText or inputMessagePhoto or InputMessageLocation or InputMessageVenue or InputMessageContact

Type: InputInlineQueryResult

Example:

$inputInlineQueryResultPhoto = ['_' => 'inputInlineQueryResultPhoto', 'id' => string, 'title' => string, 'description' => string, 'thumb_url' => string, 'photo_url' => string, 'photo_width' => int, 'photo_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];

Or, if you're into Lua:

inputInlineQueryResultPhoto={_='inputInlineQueryResultPhoto', id=string, title=string, description=string, thumb_url=string, photo_url=string, photo_width=int, photo_height=int, reply_markup=ReplyMarkup, input_message_content=InputMessageContent, }