InlineQueryResultVideo

data class InlineQueryResultVideo(type: String, id: String, video_url: String, mime_type: String, thumb_url: String, title: String, caption: String?, parse_mode: ParseMode?, caption_entities: List<MessageEntity>?, video_width: Long?, video_height: Long?, video_duration: Long?, description: String?, reply_markup: InlineKeyboardMarkup?, input_message_content: InputMessageContent?) : InlineQueryResult

Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.

If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.

Constructors

InlineQueryResultVideo
Link copied to clipboard
fun InlineQueryResultVideo(type: String, id: String, video_url: String, mime_type: String, thumb_url: String, title: String, caption: String? = null, parse_mode: ParseMode? = null, caption_entities: List<MessageEntity>? = null, video_width: Long? = null, video_height: Long? = null, video_duration: Long? = null, description: String? = null, reply_markup: InlineKeyboardMarkup? = null, input_message_content: InputMessageContent? = null)

Properties

caption
Link copied to clipboard
val caption: String? = null
Optional.
caption_entities
Link copied to clipboard
val caption_entities: List<MessageEntity>? = null
Optional.
description
Link copied to clipboard
val description: String? = null
Optional.
id
Link copied to clipboard
val id: String
Unique identifier for this result, 1-64 bytes
input_message_content
Link copied to clipboard
val input_message_content: InputMessageContent? = null
Optional.
mime_type
Link copied to clipboard
val mime_type: String
Mime type of the content of video url, “text/html” or “video/mp4”
parse_mode
Link copied to clipboard
val parse_mode: ParseMode? = null
Optional.
reply_markup
Link copied to clipboard
val reply_markup: InlineKeyboardMarkup? = null
Optional.
thumb_url
Link copied to clipboard
val thumb_url: String
URL of the thumbnail (jpeg only) for the video
title
Link copied to clipboard
val title: String
Title for the result
type
Link copied to clipboard
val type: String
Type of the result, must be video
video_duration
Link copied to clipboard
val video_duration: Long? = null
Optional.
video_height
Link copied to clipboard
val video_height: Long? = null
Optional.
video_url
Link copied to clipboard
val video_url: String
A valid URL for the embedded video player or video file
video_width
Link copied to clipboard
val video_width: Long? = null
Optional.