Struct botapi::gen_types::InlineQueryResultGifBuilder
source · pub struct InlineQueryResultGifBuilder { /* private fields */ }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.
Implementations§
source§impl InlineQueryResultGifBuilder
impl InlineQueryResultGifBuilder
pub fn new(id: String, gif_url: String, thumb_url: String) -> Self
sourcepub fn set_gif_url(self, gif_url: String) -> Self
pub fn set_gif_url(self, gif_url: String) -> Self
A valid URL for the GIF file. File size must not exceed 1MB
sourcepub fn set_gif_width(self, gif_width: i64) -> Self
pub fn set_gif_width(self, gif_width: i64) -> Self
Optional. Width of the GIF
sourcepub fn set_gif_height(self, gif_height: i64) -> Self
pub fn set_gif_height(self, gif_height: i64) -> Self
Optional. Height of the GIF
sourcepub fn set_gif_duration(self, gif_duration: i64) -> Self
pub fn set_gif_duration(self, gif_duration: i64) -> Self
Optional. Duration of the GIF in seconds
sourcepub fn set_thumb_url(self, thumb_url: String) -> Self
pub fn set_thumb_url(self, thumb_url: String) -> Self
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
sourcepub fn set_thumb_mime_type(self, thumb_mime_type: String) -> Self
pub fn set_thumb_mime_type(self, thumb_mime_type: String) -> Self
Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”
sourcepub fn set_caption(self, caption: String) -> Self
pub fn set_caption(self, caption: String) -> Self
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing
sourcepub fn set_parse_mode(self, parse_mode: String) -> Self
pub fn set_parse_mode(self, parse_mode: String) -> Self
Optional. Mode for parsing entities in the caption. See formatting options for more details.
sourcepub fn set_caption_entities(self, caption_entities: Vec<MessageEntity>) -> Self
pub fn set_caption_entities(self, caption_entities: Vec<MessageEntity>) -> Self
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
sourcepub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
pub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
Optional. Inline keyboard attached to the message
sourcepub fn set_input_message_content(
self,
input_message_content: InputMessageContent
) -> Self
pub fn set_input_message_content(
self,
input_message_content: InputMessageContent
) -> Self
Optional. Content of the message to be sent instead of the GIF animation
pub fn build(self) -> InlineQueryResultGif
Trait Implementations§
source§impl Clone for InlineQueryResultGifBuilder
impl Clone for InlineQueryResultGifBuilder
source§fn clone(&self) -> InlineQueryResultGifBuilder
fn clone(&self) -> InlineQueryResultGifBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more