Struct teloxide_core::payloads::CreateNewStickerSet
source · [−]pub struct CreateNewStickerSet {
pub user_id: UserId,
pub name: String,
pub title: String,
pub sticker: InputSticker,
pub emojis: String,
pub contains_masks: Option<bool>,
pub mask_position: Option<MaskPosition>,
}Expand description
Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker or tgs_sticker. Returns True on success.
Fields
user_id: UserIdUser identifier of sticker file owner
name: StringShort name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can’t contain consecutive underscores and must end in “_by_
title: StringSticker set title, 1-64 characters
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
contains_masks: Option<bool>Pass True, if a set of mask stickers should be created
mask_position: Option<MaskPosition>A JSON-serialized object for position where the mask should be placed on faces
Implementations
Trait Implementations
sourceimpl Clone for CreateNewStickerSet
impl Clone for CreateNewStickerSet
sourcefn clone(&self) -> CreateNewStickerSetⓘNotable traits for CreateNewStickerSetimpl Payload for CreateNewStickerSet type Output = True;
fn clone(&self) -> CreateNewStickerSetⓘNotable traits for CreateNewStickerSetimpl Payload for CreateNewStickerSet 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 CreateNewStickerSet
impl Debug for CreateNewStickerSet
sourceimpl MultipartPayload for CreateNewStickerSet
impl MultipartPayload for CreateNewStickerSet
fn copy_files(&self, into: &mut dyn FnMut(InputFile))
fn move_files(&mut self, into: &mut dyn FnMut(InputFile))
sourceimpl Payload for CreateNewStickerSet
impl Payload for CreateNewStickerSet
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 CreateNewStickerSet
impl Serialize for CreateNewStickerSet
Auto Trait Implementations
impl !RefUnwindSafe for CreateNewStickerSet
impl Send for CreateNewStickerSet
impl Sync for CreateNewStickerSet
impl Unpin for CreateNewStickerSet
impl !UnwindSafe for CreateNewStickerSet
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
