pub struct InlineQueryResultCachedGifBuilder { /* private fields */ }Expand description
Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.
Implementations§
source§impl InlineQueryResultCachedGifBuilder
impl InlineQueryResultCachedGifBuilder
pub fn new(id: String, gif_file_id: String) -> Self
sourcepub fn set_gif_file_id(self, gif_file_id: String) -> Self
pub fn set_gif_file_id(self, gif_file_id: String) -> Self
A valid file identifier for the GIF file
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) -> InlineQueryResultCachedGif
Trait Implementations§
source§impl Clone for InlineQueryResultCachedGifBuilder
impl Clone for InlineQueryResultCachedGifBuilder
source§fn clone(&self) -> InlineQueryResultCachedGifBuilder
fn clone(&self) -> InlineQueryResultCachedGifBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for InlineQueryResultCachedGifBuilder
impl Default for InlineQueryResultCachedGifBuilder
source§fn default() -> InlineQueryResultCachedGifBuilder
fn default() -> InlineQueryResultCachedGifBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InlineQueryResultCachedGifBuilder
impl<'de> Deserialize<'de> for InlineQueryResultCachedGifBuilder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more