Struct teloxide_core::payloads::CreateNewStickerSet [−][src]
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: i64
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
sticker: InputSticker
PNG 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: String
One 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
impl CreateNewStickerSet
[src]
pub fn new(
user_id: i64,
name: impl Into<String>,
title: impl Into<String>,
sticker: InputSticker,
emojis: impl Into<String>
) -> Self
[src]
user_id: i64,
name: impl Into<String>,
title: impl Into<String>,
sticker: InputSticker,
emojis: impl Into<String>
) -> Self
Trait Implementations
impl Clone for CreateNewStickerSet
[src]
fn clone(&self) -> CreateNewStickerSet
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CreateNewStickerSet
[src]
impl MultipartPayload for CreateNewStickerSet
[src]
impl PartialEq<CreateNewStickerSet> for CreateNewStickerSet
[src]
fn eq(&self, other: &CreateNewStickerSet) -> bool
[src]
fn ne(&self, other: &CreateNewStickerSet) -> bool
[src]
impl Payload for CreateNewStickerSet
[src]
impl Serialize for CreateNewStickerSet
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for CreateNewStickerSet
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,