InlineQueryResultVideo

data class InlineQueryResultVideo(id: String, videoUrl: String, mimeType: String, thumbUrl: String, title: String, caption: String?, parseMode: String?, captionEntities: List<MessageEntity>, videoWidth: Int?, videoHeight: Int?, videoDuration: Int?, description: String?, replyMarkup: InlineKeyboardMarkup?, inputMessageContent: InputMessageContent?, type: String) : 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.

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

Constructors

InlineQueryResultVideo
Link copied to clipboard
common
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)
Unique identifier for this result, 1-64 bytes

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component10
Link copied to clipboard
common
operator fun component10(): Int?
component11
Link copied to clipboard
common
operator fun component11(): Int?
component12
Link copied to clipboard
common
operator fun component12(): String?
component13
Link copied to clipboard
common
operator fun component13(): InlineKeyboardMarkup?
component14
Link copied to clipboard
common
operator fun component14(): InputMessageContent?
component15
Link copied to clipboard
common
operator fun component15(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): String
component5
Link copied to clipboard
common
operator fun component5(): String
component6
Link copied to clipboard
common
operator fun component6(): String?
component7
Link copied to clipboard
common
operator fun component7(): String?
component8
Link copied to clipboard
common
operator fun component8(): List<MessageEntity>
component9
Link copied to clipboard
common
operator fun component9(): Int?
copy
Link copied to clipboard
common
fun copy(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): InlineQueryResultVideo
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

caption
Link copied to clipboard
common
val caption: String? = null
Optional.
captionEntities
Link copied to clipboard
common
val captionEntities: List<MessageEntity>
Optional.
description
Link copied to clipboard
common
val description: String? = null
Optional.
id
Link copied to clipboard
common
val id: String
Unique identifier for this result, 1-64 bytes
inputMessageContent
Link copied to clipboard
common
val inputMessageContent: InputMessageContent? = null
Optional.
mimeType
Link copied to clipboard
common
val mimeType: String
Mime type of the content of video url, “text/html” or “video/mp4”
parseMode
Link copied to clipboard
common
val parseMode: String? = null
Optional.
replyMarkup
Link copied to clipboard
common
val replyMarkup: InlineKeyboardMarkup? = null
Optional.
thumbUrl
Link copied to clipboard
common
val thumbUrl: String
URL of the thumbnail (jpeg only) for the video
title
Link copied to clipboard
common
val title: String
Title for the result
type
Link copied to clipboard
common
val type: String
Type of the result, must be video
videoDuration
Link copied to clipboard
common
val videoDuration: Int? = null
Optional.
videoHeight
Link copied to clipboard
common
val videoHeight: Int? = null
Optional.
videoUrl
Link copied to clipboard
common
val videoUrl: String
A valid URL for the embedded video player or video file
videoWidth
Link copied to clipboard
common
val videoWidth: Int? = null
Optional.