MadelineProto/docs/TD_docs/constructors/inputInlineQueryResultVideo.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

2.7 KiB

title description
inputInlineQueryResultVideo Represents link to a page containing an embedded video player or a video file

Constructor: inputInlineQueryResultVideo

Back to constructors index

Represents link to a page containing an embedded video player or a video file

Attributes:

Name Type Required Description
id string Yes Unique identifier of this result
title string Yes Title of the result
description string Yes Short description of the result, if known
thumb_url string Yes Url of the video thumb (jpeg), if exists
video_url string Yes Url of the embedded video player or video file
mime_type string Yes MIME type of the content of video url, only "text/html" or "video/mp4" are allowed now
video_width int Yes Video width
video_height int Yes Video height
video_duration int Yes Video duration in seconds
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 inputMessageVideo or InputMessageLocation or InputMessageVenue or InputMessageContact

Type: InputInlineQueryResult

Example:

$inputInlineQueryResultVideo = ['_' => 'inputInlineQueryResultVideo', 'id' => 'string', 'title' => 'string', 'description' => 'string', 'thumb_url' => 'string', 'video_url' => 'string', 'mime_type' => 'string', 'video_width' => int, 'video_height' => int, 'video_duration' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent];

PWRTelegram json-encoded version:

{"_": "inputInlineQueryResultVideo", "id": "string", "title": "string", "description": "string", "thumb_url": "string", "video_url": "string", "mime_type": "string", "video_width": int, "video_height": int, "video_duration": int, "reply_markup": ReplyMarkup, "input_message_content": InputMessageContent}

Or, if you're into Lua:

inputInlineQueryResultVideo={_='inputInlineQueryResultVideo', id='string', title='string', description='string', thumb_url='string', video_url='string', mime_type='string', video_width=int, video_height=int, video_duration=int, reply_markup=ReplyMarkup, input_message_content=InputMessageContent}

Usage of reply_markup

You can provide bot API reply_markup objects here.