Struct telegram_types::bot::methods::SendSticker
source · pub struct SendSticker<'a> {
pub chat_id: ChatTarget<'a>,
pub sticker: File,
pub disable_notification: Option<bool>,
pub reply_to_message_id: Option<MessageId>,
pub reply_markup: Option<ReplyMarkup>,
}
Expand description
Use this method to send .webp stickers.
Fields
chat_id: ChatTarget<'a>
sticker: File
disable_notification: Option<bool>
reply_to_message_id: Option<MessageId>
reply_markup: Option<ReplyMarkup>
Implementations
sourceimpl<'a> SendSticker<'a>
impl<'a> SendSticker<'a>
pub fn new(chat_id: ChatTarget<'a>, sticker: File) -> SendSticker<'a>
pub fn reply(self, reply_to_message_id: MessageId) -> SendSticker<'a>
pub fn reply_markup(self, markup: ReplyMarkup) -> Self
Trait Implementations
sourceimpl<'a> Clone for SendSticker<'a>
impl<'a> Clone for SendSticker<'a>
sourcefn clone(&self) -> SendSticker<'a>
fn clone(&self) -> SendSticker<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for SendSticker<'a>
impl<'a> Debug for SendSticker<'a>
sourceimpl<'de, 'a> Deserialize<'de> for SendSticker<'a>
impl<'de, 'a> Deserialize<'de> for SendSticker<'a>
sourcefn 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
sourceimpl<'a> Method for SendSticker<'a>
impl<'a> Method for SendSticker<'a>
sourceimpl<'a> PartialEq<SendSticker<'a>> for SendSticker<'a>
impl<'a> PartialEq<SendSticker<'a>> for SendSticker<'a>
sourcefn eq(&self, other: &SendSticker<'a>) -> bool
fn eq(&self, other: &SendSticker<'a>) -> bool
sourceimpl<'a> Serialize for SendSticker<'a>
impl<'a> Serialize for SendSticker<'a>
impl<'a> Eq for SendSticker<'a>
impl<'a> StructuralEq for SendSticker<'a>
impl<'a> StructuralPartialEq for SendSticker<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SendSticker<'a>
impl<'a> Send for SendSticker<'a>
impl<'a> Sync for SendSticker<'a>
impl<'a> Unpin for SendSticker<'a>
impl<'a> UnwindSafe for SendSticker<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more