Struct teloxide_core::payloads::CreateNewStickerSet
source · pub struct CreateNewStickerSet {
pub user_id: UserId,
pub name: String,
pub title: String,
pub stickers: Vec<InputSticker>,
pub sticker_format: StickerFormat,
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: UserId
User identifier of sticker file owner
name: String
Short 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: String
Sticker 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_format: StickerFormat
Format of the sticker, must be one of “static”, “animated”, “video”
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>, sticker_format: StickerFormat, ) -> 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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_format(self, value: StickerFormat) -> Self
fn sticker_format(self, value: StickerFormat) -> Self
sticker_format
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