pub struct CreateNewStickerSet {
pub user_id: UserId,
pub name: String,
pub title: String,
pub stickers: Vec<InputSticker>,
pub sticker_type: Option<StickerType>,
pub needs_repainting: Option<bool>,
}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. 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
stickers: Vec<InputSticker>A JSON-serialized list of 1-50 initial stickers to be added to the sticker set
sticker_type: Option<StickerType>Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.
needs_repainting: Option<bool>Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only
Implementations§
Source§impl CreateNewStickerSet
impl CreateNewStickerSet
pub fn new( user_id: UserId, name: impl Into<String>, title: impl Into<String>, stickers: impl IntoIterator<Item = InputSticker>, ) -> Self
Trait Implementations§
Source§impl Clone for CreateNewStickerSet
impl Clone for CreateNewStickerSet
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateNewStickerSet
impl Debug for CreateNewStickerSet
Source§impl 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))
Source§impl Payload for CreateNewStickerSet
impl Payload for CreateNewStickerSet
Source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates with
big timeout), the minimum timeout that should be used.Auto Trait Implementations§
impl Freeze for CreateNewStickerSet
impl !RefUnwindSafe for CreateNewStickerSet
impl Send for CreateNewStickerSet
impl Sync for CreateNewStickerSet
impl Unpin for CreateNewStickerSet
impl !UnwindSafe for CreateNewStickerSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P> CreateNewStickerSetSetters for Pwhere
P: HasPayload<Payload = CreateNewStickerSet>,
impl<P> CreateNewStickerSetSetters for Pwhere
P: HasPayload<Payload = CreateNewStickerSet>,
Source§fn stickers<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = InputSticker>,
fn stickers<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = InputSticker>,
stickers field.Source§fn sticker_type(self, value: StickerType) -> Self
fn sticker_type(self, value: StickerType) -> Self
sticker_type field.Source§fn needs_repainting(self, value: bool) -> Self
fn needs_repainting(self, value: bool) -> Self
needs_repainting field.Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
Source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
Source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more