Struct botapi::gen_types::InlineQueryResultCachedSticker
source · pub struct InlineQueryResultCachedSticker { /* private fields */ }Expand description
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.Note: This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them.
Implementations§
source§impl InlineQueryResultCachedSticker
impl InlineQueryResultCachedSticker
pub fn noskip(self) -> NoSkipInlineQueryResultCachedSticker
source§impl InlineQueryResultCachedSticker
impl InlineQueryResultCachedSticker
pub fn new(id: String, sticker_file_id: String) -> Self
sourcepub fn get_tg_type<'a>(&'a self) -> &'a str
pub fn get_tg_type<'a>(&'a self) -> &'a str
Type of the result, must be sticker
sourcepub fn get_sticker_file_id<'a>(&'a self) -> &'a str
pub fn get_sticker_file_id<'a>(&'a self) -> &'a str
A valid file identifier of the sticker
sourcepub fn get_reply_markup<'a>(&'a self) -> Option<&'a InlineKeyboardMarkup>
pub fn get_reply_markup<'a>(&'a self) -> Option<&'a InlineKeyboardMarkup>
Optional. Inline keyboard attached to the message
sourcepub fn get_input_message_content<'a>(
&'a self
) -> Option<&'a InputMessageContent>
pub fn get_input_message_content<'a>(
&'a self
) -> Option<&'a InputMessageContent>
Optional. Content of the message to be sent instead of the sticker
Trait Implementations§
source§impl Clone for InlineQueryResultCachedSticker
impl Clone for InlineQueryResultCachedSticker
source§fn clone(&self) -> InlineQueryResultCachedSticker
fn clone(&self) -> InlineQueryResultCachedSticker
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 InlineQueryResultCachedSticker
impl Default for InlineQueryResultCachedSticker
source§fn default() -> InlineQueryResultCachedSticker
fn default() -> InlineQueryResultCachedSticker
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InlineQueryResultCachedSticker
impl<'de> Deserialize<'de> for InlineQueryResultCachedSticker
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
source§impl From<NoSkipInlineQueryResultCachedSticker> for InlineQueryResultCachedSticker
impl From<NoSkipInlineQueryResultCachedSticker> for InlineQueryResultCachedSticker
source§fn from(t: NoSkipInlineQueryResultCachedSticker) -> Self
fn from(t: NoSkipInlineQueryResultCachedSticker) -> Self
Converts to this type from the input type.
source§impl Into<NoSkipInlineQueryResultCachedSticker> for InlineQueryResultCachedSticker
impl Into<NoSkipInlineQueryResultCachedSticker> for InlineQueryResultCachedSticker
source§fn into(self) -> NoSkipInlineQueryResultCachedSticker
fn into(self) -> NoSkipInlineQueryResultCachedSticker
Converts this type into the (usually inferred) input type.