[][src]Struct tg_bot_models::CreateNewStickerSet

pub struct CreateNewStickerSet {
    pub user_id: i64,
    pub name: String,
    pub title: String,
    pub png_sticker: String,
    pub emojis: String,
    pub contains_masks: Option<bool>,
    pub mask_position: Option<MaskPosition>,
}

Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set. Returns True on success.

Fields

user_id: i64

User identifier of created sticker set 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”. <bot_username> is case insensitive. 1-64 characters.

title: String

Sticker set title, 1-64 characters

png_sticker: String

Png 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

Trait Implementations

impl PartialOrd<CreateNewStickerSet> for CreateNewStickerSet[src]

impl Clone for CreateNewStickerSet[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<CreateNewStickerSet> for CreateNewStickerSet[src]

impl Debug for CreateNewStickerSet[src]

impl Serialize for CreateNewStickerSet[src]

impl<'de> Deserialize<'de> for CreateNewStickerSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]