Struct mogram::api::sticker::SendStickerRequest
source · pub struct SendStickerRequest {
pub chat_id: i64,
pub sticker: String,
pub disable_notification: Option<bool>,
pub reply_to_message_id: Option<i64>,
}Fields§
§chat_id: i64Unique identifier for the target chat or username of the target
sticker: StringSticker to send. Pass a file_id as String to send a file that
disable_notification: Option<bool>Sends the message silently. Users will receive a notification with
reply_to_message_id: Option<i64>If the message is a reply, ID of the original message
Implementations§
source§impl SendStickerRequest
impl SendStickerRequest
pub fn new(chat_id: i64, sticker: String) -> Self
pub fn with_disable_notification(self, disable_notification: bool) -> Self
pub fn with_reply_to_message_id(self, reply_to_message_id: i64) -> Self
Trait Implementations§
source§impl Clone for SendStickerRequest
impl Clone for SendStickerRequest
source§fn clone(&self) -> SendStickerRequest
fn clone(&self) -> SendStickerRequest
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 Debug for SendStickerRequest
impl Debug for SendStickerRequest
source§impl Serialize for SendStickerRequest
impl Serialize for SendStickerRequest
impl Request for SendStickerRequest
Auto Trait Implementations§
impl RefUnwindSafe for SendStickerRequest
impl Send for SendStickerRequest
impl Sync for SendStickerRequest
impl Unpin for SendStickerRequest
impl UnwindSafe for SendStickerRequest
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