Skip to content

addStickerToSet

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

Bots only. Adds new sticker to a set. Returns the sticker set.

addStickerToSet(user_id, name, png_sticker, point, x_shift, y_shift, scale)
Field Type Description
user_id int32 Sticker set owner
name string Sticker set name
png_sticker Png image with the sticker, must be up to 512 kilobytes in size and fit in 512x512 square
emojis Emojis corresponding to the sticker
point Part of a face relative to which the mask should be placed. 0 - forehead, 1 - eyes, 2 - mouth, 3 - chin
x_shift 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 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 Mask scaling coefficient. For example, 2.0 means double size

Frequently Asked Questions
The Functions

Clone this wiki locally