InlineQueryResultMpeg4Gif

data class InlineQueryResultMpeg4Gif(id: String, mpeg4Url: String, mpeg4Width: Int?, mpeg4Height: Int?, mpeg4Duration: Int?, thumbUrl: String, thumbMimeType: String?, title: String?, caption: String?, parseMode: String?, captionEntities: List<MessageEntity>, replyMarkup: InlineKeyboardMarkup?, inputMessageContent: InputMessageContent?, type: String) : InlineQueryResult

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

Parameters

id

Unique identifier for this result, 1-64 bytes

mpeg4Url

A valid URL for the MP4 file. File size must not exceed 1MB

mpeg4Width

Optional. Video width

mpeg4Height

Optional. Video height

mpeg4Duration

Optional. Video duration

thumbUrl

URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result

thumbMimeType

Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”

title

Optional. Title for the result

caption

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

parseMode

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

replyMarkup

Optional. Inline keyboard attached to the message

inputMessageContent

Optional. Content of the message to be sent instead of the video animation

type

Type of the result, must be mpeg4_gif

Constructors

InlineQueryResultMpeg4Gif
Link copied to clipboard
common
fun InlineQueryResultMpeg4Gif(id: String, mpeg4Url: String, mpeg4Width: Int? = null, mpeg4Height: Int? = null, mpeg4Duration: Int? = null, thumbUrl: String, thumbMimeType: String? = null, title: String? = null, caption: String? = null, parseMode: String? = null, captionEntities: List<MessageEntity> = emptyList(), 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(): String?
component11
Link copied to clipboard
common
operator fun component11(): List<MessageEntity>
component12
Link copied to clipboard
common
operator fun component12(): InlineKeyboardMarkup?
component13
Link copied to clipboard
common
operator fun component13(): InputMessageContent?
component14
Link copied to clipboard
common
operator fun component14(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): Int?
component4
Link copied to clipboard
common
operator fun component4(): Int?
component5
Link copied to clipboard
common
operator fun component5(): Int?
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(): String?
component9
Link copied to clipboard
common
operator fun component9(): String?
copy
Link copied to clipboard
common
fun copy(id: String, mpeg4Url: String, mpeg4Width: Int? = null, mpeg4Height: Int? = null, mpeg4Duration: Int? = null, thumbUrl: String, thumbMimeType: String? = null, title: String? = null, caption: String? = null, parseMode: String? = null, captionEntities: List<MessageEntity> = emptyList(), replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String): InlineQueryResultMpeg4Gif
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.
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.
mpeg4Duration
Link copied to clipboard
common
val mpeg4Duration: Int? = null
Optional.
mpeg4Height
Link copied to clipboard
common
val mpeg4Height: Int? = null
Optional.
mpeg4Url
Link copied to clipboard
common
val mpeg4Url: String
A valid URL for the MP4 file.
mpeg4Width
Link copied to clipboard
common
val mpeg4Width: Int? = null
Optional.
parseMode
Link copied to clipboard
common
val parseMode: String? = null
Optional.
replyMarkup
Link copied to clipboard
common
val replyMarkup: InlineKeyboardMarkup? = null
Optional.
thumbMimeType
Link copied to clipboard
common
val thumbMimeType: String? = null
Optional.
thumbUrl
Link copied to clipboard
common
val thumbUrl: String
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
title
Link copied to clipboard
common
val title: String? = null
Optional.
type
Link copied to clipboard
common
val type: String
Type of the result, must be mpeg4_gif