pub struct BlockingStickerSendBuilder { /* private fields */ }Expand description
Stable builder for high-level sticker sends on the blocking app facade.
Blocking mirror of StickerSendBuilder.
Implementations§
Source§impl BlockingStickerSendBuilder
impl BlockingStickerSendBuilder
Sourcepub fn send(self) -> Result<Message>
pub fn send(self) -> Result<Message>
Sends the sticker using a Telegram file id / URL / attach reference already in the request.
Sourcepub fn send_upload(self, file: &UploadFile) -> Result<Message>
pub fn send_upload(self, file: &UploadFile) -> Result<Message>
Uploads local bytes as the sticker payload.
Source§impl BlockingStickerSendBuilder
impl BlockingStickerSendBuilder
Sourcepub fn emoji(self, emoji: impl Into<String>) -> Self
pub fn emoji(self, emoji: impl Into<String>) -> Self
Sets the optional emoji associated with the sticker send.
Sourcepub fn reply_markup(self, reply_markup: impl Into<ReplyMarkup>) -> Result<Self>
pub fn reply_markup(self, reply_markup: impl Into<ReplyMarkup>) -> Result<Self>
Attaches reply markup such as an inline keyboard.
Sourcepub fn reply_parameters(self, reply_parameters: ReplyParameters) -> Result<Self>
pub fn reply_parameters(self, reply_parameters: ReplyParameters) -> Result<Self>
Sets explicit reply parameters.
Sourcepub fn reply_to_message(self, message_id: MessageId) -> Result<Self>
pub fn reply_to_message(self, message_id: MessageId) -> Result<Self>
Replies to a concrete message by id.
Sourcepub fn message_thread_id(self, message_thread_id: i64) -> Self
pub fn message_thread_id(self, message_thread_id: i64) -> Self
Targets a forum topic / message thread when applicable.
Sourcepub fn disable_notification(self, enabled: bool) -> Self
pub fn disable_notification(self, enabled: bool) -> Self
Sends silently when true.
Sourcepub fn protect_content(self, enabled: bool) -> Self
pub fn protect_content(self, enabled: bool) -> Self
Protects the sent sticker from forwarding and saving when true.
Sourcepub fn into_request(self) -> SendStickerRequest
pub fn into_request(self) -> SendStickerRequest
Returns the typed request for lower-level reuse or inspection.
Trait Implementations§
Source§impl Clone for BlockingStickerSendBuilder
impl Clone for BlockingStickerSendBuilder
Source§fn clone(&self) -> BlockingStickerSendBuilder
fn clone(&self) -> BlockingStickerSendBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BlockingStickerSendBuilder
impl !RefUnwindSafe for BlockingStickerSendBuilder
impl Send for BlockingStickerSendBuilder
impl Sync for BlockingStickerSendBuilder
impl Unpin for BlockingStickerSendBuilder
impl UnsafeUnpin for BlockingStickerSendBuilder
impl !UnwindSafe for BlockingStickerSendBuilder
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