pub struct InlineQueryResultCachedGif { /* private fields */ }
Expand description
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 Self::with_input_message_content
to send
a message with specified content instead of the animation.
Implementations§
Source§impl InlineQueryResultCachedGif
impl InlineQueryResultCachedGif
Sourcepub fn new<A, B>(gif_file_id: A, id: B) -> InlineQueryResultCachedGif
pub fn new<A, B>(gif_file_id: A, id: B) -> InlineQueryResultCachedGif
Creates a new InlineQueryResultCachedGif
.
§Arguments
gif_file_id
- A valid file identifier for the GIF file.id
- Unique identifier for this result; 1-64 bytes.
Sourcepub fn with_caption<T>(self, value: T) -> InlineQueryResultCachedGif
pub fn with_caption<T>(self, value: T) -> InlineQueryResultCachedGif
Sourcepub fn with_caption_entities<T>(self, value: T) -> InlineQueryResultCachedGifwhere
T: IntoIterator<Item = TextEntity>,
pub fn with_caption_entities<T>(self, value: T) -> InlineQueryResultCachedGifwhere
T: IntoIterator<Item = TextEntity>,
Sourcepub fn with_caption_parse_mode(
self,
value: ParseMode,
) -> InlineQueryResultCachedGif
pub fn with_caption_parse_mode( self, value: ParseMode, ) -> InlineQueryResultCachedGif
Sourcepub fn with_input_message_content<T>(
self,
value: T,
) -> InlineQueryResultCachedGifwhere
T: Into<InputMessageContent>,
pub fn with_input_message_content<T>(
self,
value: T,
) -> InlineQueryResultCachedGifwhere
T: Into<InputMessageContent>,
Sets a new input message content.
§Arguments
value
- Content of the message to be sent instead of the GIF animation.
Sourcepub fn with_reply_markup<T>(self, value: T) -> InlineQueryResultCachedGifwhere
T: Into<InlineKeyboardMarkup>,
pub fn with_reply_markup<T>(self, value: T) -> InlineQueryResultCachedGifwhere
T: Into<InlineKeyboardMarkup>,
Sourcepub fn with_show_caption_above_media(
self,
value: bool,
) -> InlineQueryResultCachedGif
pub fn with_show_caption_above_media( self, value: bool, ) -> InlineQueryResultCachedGif
Sets a new value for the show_caption_above_media
flag.
§Arguments
value
- Whether the caption must be shown above the message media.
Sourcepub fn with_title<T>(self, value: T) -> InlineQueryResultCachedGif
pub fn with_title<T>(self, value: T) -> InlineQueryResultCachedGif
Trait Implementations§
Source§impl Clone for InlineQueryResultCachedGif
impl Clone for InlineQueryResultCachedGif
Source§fn clone(&self) -> InlineQueryResultCachedGif
fn clone(&self) -> InlineQueryResultCachedGif
Returns a duplicate 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 Debug for InlineQueryResultCachedGif
impl Debug for InlineQueryResultCachedGif
Source§impl<'de> Deserialize<'de> for InlineQueryResultCachedGif
impl<'de> Deserialize<'de> for InlineQueryResultCachedGif
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlineQueryResultCachedGif, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlineQueryResultCachedGif, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<InlineQueryResultCachedGif> for InlineQueryResult
impl From<InlineQueryResultCachedGif> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedGif) -> InlineQueryResult
fn from(value: InlineQueryResultCachedGif) -> InlineQueryResult
Converts to this type from the input type.
Source§impl Serialize for InlineQueryResultCachedGif
impl Serialize for InlineQueryResultCachedGif
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<RawInlineQueryResult> for InlineQueryResultCachedGif
impl TryFrom<RawInlineQueryResult> for InlineQueryResultCachedGif
impl StructuralPartialEq for InlineQueryResultCachedGif
Auto Trait Implementations§
impl Freeze for InlineQueryResultCachedGif
impl RefUnwindSafe for InlineQueryResultCachedGif
impl Send for InlineQueryResultCachedGif
impl Sync for InlineQueryResultCachedGif
impl Unpin for InlineQueryResultCachedGif
impl UnwindSafe for InlineQueryResultCachedGif
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more