pub struct InlineQueryResultCachedStickerBuilder { /* 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 InlineQueryResultCachedStickerBuilder
impl InlineQueryResultCachedStickerBuilder
pub fn new(id: String, sticker_file_id: String) -> Self
sourcepub fn set_sticker_file_id(self, sticker_file_id: String) -> Self
pub fn set_sticker_file_id(self, sticker_file_id: String) -> Self
A valid file identifier of the sticker
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 sticker
pub fn build(self) -> InlineQueryResultCachedSticker
Trait Implementations§
source§impl Clone for InlineQueryResultCachedStickerBuilder
impl Clone for InlineQueryResultCachedStickerBuilder
source§fn clone(&self) -> InlineQueryResultCachedStickerBuilder
fn clone(&self) -> InlineQueryResultCachedStickerBuilder
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 InlineQueryResultCachedStickerBuilder
impl Default for InlineQueryResultCachedStickerBuilder
source§fn default() -> InlineQueryResultCachedStickerBuilder
fn default() -> InlineQueryResultCachedStickerBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InlineQueryResultCachedStickerBuilder
impl<'de> Deserialize<'de> for InlineQueryResultCachedStickerBuilder
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
Auto Trait Implementations§
impl RefUnwindSafe for InlineQueryResultCachedStickerBuilder
impl Send for InlineQueryResultCachedStickerBuilder
impl Sync for InlineQueryResultCachedStickerBuilder
impl Unpin for InlineQueryResultCachedStickerBuilder
impl UnwindSafe for InlineQueryResultCachedStickerBuilder
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