Struct tg_bot_models::CreateNewStickerSet[][src]

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 identifier of created sticker set owner

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.

Sticker set title, 1-64 characters

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 »

One or more emoji corresponding to the sticker

Pass True, if a set of mask stickers should be created

A JSON-serialized object for position where the mask should be placed on faces

Trait Implementations

impl Debug for CreateNewStickerSet
[src]

Formats the value using the given formatter. Read more

impl Clone for CreateNewStickerSet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for CreateNewStickerSet
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for CreateNewStickerSet
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations