Skip to content

createNewStickerSet

Sahri Riza Umami edited this page Sep 10, 2017 · 3 revisions

Bots only.
Creates new sticker set.
Returns created sticker set

createNewStickerSet(user_id, title, name, is_masks, png_sticker, emojis, point, x_shift, y_shift, scale)
Field Type Description
user_id int32 Sticker set owner
title string Sticker set title, 1-64 characters
name string Sticker set name. Can contain only english letters, digits and underscores. Should end on "by". <bot_username> is case insensitive, 1-64 characters
is_masks Bool True, is stickers are masks
png_sticker string Png image with the sticker, must be up to 512 kilobytes in size and fit in 512x512 square. id, persisten_id or path.
emojis string Emojis corresponding to the sticker
point int32 Part of a face relative to which the mask should be placed. 0 - forehead, 1 - eyes, 2 - mouth, 3 - chin
x_shift double Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position
y_shift double Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.
scale double Mask scaling coefficient. For example, 2.0 means double size
maskPosition point:int32 x_shift:double y_shift:double scale:double = MaskPosition;

Frequently Asked Questions
The Functions

Clone this wiki locally