InlineQueryResultGif

data class InlineQueryResultGif(type: String, id: String, gif_url: String, gif_width: Long?, gif_height: Long?, gif_duration: Long?, thumb_url: String, thumb_mime_type: String?, title: String?, caption: String?, parse_mode: ParseMode?, caption_entities: List<MessageEntity>?, reply_markup: InlineKeyboardMarkup?, input_message_content: InputMessageContent?) : InlineQueryResult

Represents a link to an animated GIF file. By default, this animated GIF 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.

Constructors

InlineQueryResultGif
Link copied to clipboard
fun InlineQueryResultGif(type: String, id: String, gif_url: String, gif_width: Long? = null, gif_height: Long? = null, gif_duration: Long? = null, thumb_url: String, thumb_mime_type: String? = null, title: String? = null, caption: String? = null, parse_mode: ParseMode? = null, caption_entities: List<MessageEntity>? = 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.
gif_duration
Link copied to clipboard
val gif_duration: Long? = null
Optional.
gif_height
Link copied to clipboard
val gif_height: Long? = null
Optional.
gif_url
Link copied to clipboard
val gif_url: String
A valid URL for the GIF file.
gif_width
Link copied to clipboard
val gif_width: Long? = 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.
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_mime_type
Link copied to clipboard
val thumb_mime_type: String? = null
Optional.
thumb_url
Link copied to clipboard
val thumb_url: String
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
title
Link copied to clipboard
val title: String? = null
Optional.
type
Link copied to clipboard
val type: String
Type of the result, must be gif