Struct teloxide_core::payloads::AddStickerToSet
source · [−]pub struct AddStickerToSet {
pub user_id: UserId,
pub name: String,
pub sticker: InputSticker,
pub emojis: String,
pub mask_position: Option<MaskPosition>,
}Expand description
Use this method to add a new sticker to a set created by the bot. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.
Fields
user_id: UserIdUser identifier of sticker file owner
name: StringSticker set name
sticker: InputStickerPNG or TGS image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
emojis: StringOne or more emoji corresponding to the sticker
mask_position: Option<MaskPosition>A JSON-serialized object for position where the mask should be placed on faces
Implementations
Trait Implementations
sourceimpl Clone for AddStickerToSet
impl Clone for AddStickerToSet
sourcefn clone(&self) -> AddStickerToSetⓘNotable traits for AddStickerToSetimpl Payload for AddStickerToSet type Output = True;
fn clone(&self) -> AddStickerToSetⓘNotable traits for AddStickerToSetimpl Payload for AddStickerToSet type Output = True;
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 more
sourceimpl Debug for AddStickerToSet
impl Debug for AddStickerToSet
sourceimpl MultipartPayload for AddStickerToSet
impl MultipartPayload for AddStickerToSet
fn copy_files(&self, into: &mut dyn FnMut(InputFile))
fn move_files(&mut self, into: &mut dyn FnMut(InputFile))
sourceimpl Payload for AddStickerToSet
impl Payload for AddStickerToSet
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g. GetUpdates with
big timeout), the minimum timeout that should be used. Read more
sourceimpl Serialize for AddStickerToSet
impl Serialize for AddStickerToSet
Auto Trait Implementations
impl !RefUnwindSafe for AddStickerToSet
impl Send for AddStickerToSet
impl Sync for AddStickerToSet
impl Unpin for AddStickerToSet
impl !UnwindSafe for AddStickerToSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<T> Erasable for T
impl<T> Erasable for T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
