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 Self::with_input_message_content to
send a message with the specified content instead of the sticker.
Implementations§
Source§impl InlineQueryResultCachedSticker
impl InlineQueryResultCachedSticker
Sourcepub fn new<A, B>(id: A, sticker_file_id: B) -> Self
pub fn new<A, B>(id: A, sticker_file_id: B) -> Self
Creates a new InlineQueryResultCachedSticker.
§Arguments
id- Unique identifier of the result; 1-64 bytes.sticker_file_id- A valid file identifier of the sticker.
Sourcepub fn with_input_message_content<T>(self, value: T) -> Selfwhere
T: Into<InputMessageContent>,
pub fn with_input_message_content<T>(self, value: T) -> Selfwhere
T: Into<InputMessageContent>,
Sets a new input message content.
§Arguments
value- Content of the message to be sent instead of the photo.
Sourcepub fn with_reply_markup<T>(self, value: T) -> Selfwhere
T: Into<InlineKeyboardMarkup>,
pub fn with_reply_markup<T>(self, value: T) -> Selfwhere
T: Into<InlineKeyboardMarkup>,
Trait Implementations§
Source§impl Clone for InlineQueryResultCachedSticker
impl Clone for InlineQueryResultCachedSticker
Source§fn clone(&self) -> InlineQueryResultCachedSticker
fn clone(&self) -> InlineQueryResultCachedSticker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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<InlineQueryResultCachedSticker> for InlineQueryResult
impl From<InlineQueryResultCachedSticker> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedSticker) -> Self
fn from(value: InlineQueryResultCachedSticker) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InlineQueryResultCachedSticker
impl PartialEq for InlineQueryResultCachedSticker
Source§fn eq(&self, other: &InlineQueryResultCachedSticker) -> bool
fn eq(&self, other: &InlineQueryResultCachedSticker) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InlineQueryResultCachedSticker
Auto Trait Implementations§
impl Freeze for InlineQueryResultCachedSticker
impl RefUnwindSafe for InlineQueryResultCachedSticker
impl Send for InlineQueryResultCachedSticker
impl Sync for InlineQueryResultCachedSticker
impl Unpin for InlineQueryResultCachedSticker
impl UnsafeUnpin for InlineQueryResultCachedSticker
impl UnwindSafe for InlineQueryResultCachedSticker
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