pub struct CallCreateNewStickerSet<'a> { /* private fields */ }Implementations§
Source§impl<'a> CallCreateNewStickerSet<'a>
impl<'a> CallCreateNewStickerSet<'a>
pub fn get_user_id(&'a self) -> &'a i64
Sourcepub fn name(self, name: &'a str) -> Self
pub fn name(self, name: &'a str) -> Self
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<bot_username>”. <bot_username> is case insensitive. 1-64 characters.
pub fn get_name(&'a self) -> &'a &'a str
pub fn get_title(&'a self) -> &'a &'a str
Sourcepub fn stickers(self, stickers: &'a Vec<InputSticker>) -> Self
pub fn stickers(self, stickers: &'a Vec<InputSticker>) -> Self
A JSON-serialized list of 1-50 initial stickers to be added to the sticker set
pub fn get_stickers(&'a self) -> &'a &'a Vec<InputSticker>
Sourcepub fn sticker_type(self, sticker_type: &'a str) -> Self
pub fn sticker_type(self, sticker_type: &'a str) -> Self
Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.
pub fn get_sticker_type(&'a self) -> &'a Option<&'a str>
Sourcepub fn needs_repainting(self, needs_repainting: bool) -> Self
pub fn needs_repainting(self, needs_repainting: bool) -> Self
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
pub fn get_needs_repainting(&'a self) -> &'a Option<bool>
pub async fn build(self) -> BotResult<bool>
Auto Trait Implementations§
impl<'a> Freeze for CallCreateNewStickerSet<'a>
impl<'a> !RefUnwindSafe for CallCreateNewStickerSet<'a>
impl<'a> Send for CallCreateNewStickerSet<'a>
impl<'a> Sync for CallCreateNewStickerSet<'a>
impl<'a> Unpin for CallCreateNewStickerSet<'a>
impl<'a> UnsafeUnpin for CallCreateNewStickerSet<'a>
impl<'a> !UnwindSafe for CallCreateNewStickerSet<'a>
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