InlineQueryResultVideo

fun InlineQueryResultVideo(id: String, videoUrl: String, mimeType: String, thumbUrl: String, title: String, caption: String? = null, parseMode: String? = null, captionEntities: List<MessageEntity> = emptyList(), videoWidth: Int? = null, videoHeight: Int? = null, videoDuration: Int? = null, description: String? = null, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String)

Parameters

id

Unique identifier for this result, 1-64 bytes

videoUrl

A valid URL for the embedded video player or video file

mimeType

Mime type of the content of video url, “text/html” or “video/mp4”

thumbUrl

URL of the thumbnail (jpeg only) for the video

title

Title for the result

caption

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

parseMode

Optional. Mode for parsing entities in the video 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

videoWidth

Optional. Video width

videoHeight

Optional. Video height

videoDuration

Optional. Video duration in seconds

description

Optional. Short description of the result

replyMarkup

Optional. Inline keyboard attached to the message

inputMessageContent

Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).

type

Type of the result, must be video