Struct botapi::gen_types::InputStickerBuilder
source · pub struct InputStickerBuilder { /* private fields */ }
Expand description
This object describes a sticker to be added to a sticker set.
Implementations§
source§impl InputStickerBuilder
impl InputStickerBuilder
pub fn new(sticker: InputFile, emoji_list: Vec<String>) -> Self
sourcepub fn set_sticker(self, sticker: InputFile) -> Self
pub fn set_sticker(self, sticker: InputFile) -> Self
The added sticker. 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, upload a new one using multipart/form-data, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. Animated and video stickers can’t be uploaded via HTTP URL. More information on Sending Files: https://core.telegram.org/bots/api#sending-files
sourcepub fn set_emoji_list(self, emoji_list: Vec<String>) -> Self
pub fn set_emoji_list(self, emoji_list: Vec<String>) -> Self
List of 1-20 emoji associated with the sticker
sourcepub fn set_mask_position(self, mask_position: MaskPosition) -> Self
pub fn set_mask_position(self, mask_position: MaskPosition) -> Self
Optional. Position where the mask should be placed on faces. For “mask” stickers only.
sourcepub fn set_keywords(self, keywords: Vec<String>) -> Self
pub fn set_keywords(self, keywords: Vec<String>) -> Self
Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.
pub fn build(self) -> InputSticker
Trait Implementations§
source§impl Clone for InputStickerBuilder
impl Clone for InputStickerBuilder
source§fn clone(&self) -> InputStickerBuilder
fn clone(&self) -> InputStickerBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more