pub struct InlineQueryResultGif {Show 16 fields
pub kind: String,
pub id: String,
pub gif_url: String,
pub thumbnail_url: String,
pub gif_width: Option<i64>,
pub gif_height: Option<i64>,
pub gif_duration: Option<i64>,
pub thumbnail_mime_type: Option<String>,
pub title: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub show_caption_above_media: Option<bool>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContentUnion>,
pub extra: BTreeMap<String, Value>,
}Expand description
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.
Fields§
§kind: StringType of the result, must be gif
id: StringUnique identifier for this result, 1-64 bytes
gif_url: StringA valid URL for the GIF file
thumbnail_url: StringURL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
gif_width: Option<i64>Width of the GIF
gif_height: Option<i64>Height of the GIF
gif_duration: Option<i64>Duration of the GIF in seconds
thumbnail_mime_type: Option<String>MIME type of the thumbnail, must be one of ‘image/jpeg’, ‘image/gif’, or ‘video/mp4’. Defaults to ‘image/jpeg’.
title: Option<String>Title for the result
caption: Option<String>Caption of the GIF file to be sent, 0-1024 characters after entities parsing
parse_mode: Option<String>Mode for parsing entities in the caption. See formatting options for more details.
caption_entities: Option<Vec<MessageEntity>>List of special entities that appear in the caption, which can be specified instead of parse_mode
show_caption_above_media: Option<bool>Pass True if the caption must be shown above the message media
reply_markup: Option<InlineKeyboardMarkup>Inline keyboard attached to the message
input_message_content: Option<InputMessageContentUnion>Content of the message to be sent instead of the GIF animation
extra: BTreeMap<String, Value>