2.3 KiB
2.3 KiB
title | description |
---|---|
inputInlineQueryResultPhoto | Represents link to a jpeg photo |
Constructor: inputInlineQueryResultPhoto
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];
PWRTelegram json-encoded version:
{"_": "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}
Usage of reply_markup
You can provide bot API reply_markup objects here.