Use this method to create a new sticker set owned by a user
Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker or tgs_sticker. Returns True on success.
Body
Required
-
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_”. is case insensitive. 1-64 characters. -
Sticker set title, 1-64 characters
png_sticker
string Any of: This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.
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 »
-
This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.
-
One or more emoji corresponding to the sticker
-
Pass True, if a set of mask stickers should be created
-
This object describes the position on faces where a mask should be placed by default.
curl \
-X POST https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/createNewStickerSet \
-H "Content-Type: multipart/form-data" \
-F "user_id=42" \
-F "name=string" \
-F "title=string" \
-F "emojis=string" \
-F "contains_masks=true" \
-F 'mask_position={"point":"forehead","x_shift":42.0,"y_shift":42.0,"scale":42.0}'
{
"user_id": 42,
"name": "string",
"title": "string",
"emojis": "string",
"contains_masks": true,
"mask_position": {
"point": "forehead",
"x_shift": 42.0,
"y_shift": 42.0,
"scale": 42.0
}
}
{
"user_id": 42,
"name": "string",
"title": "string",
"emojis": "string",
"contains_masks": true,
"mask_position": {
"point": "forehead",
"x_shift": 42.0,
"y_shift": 42.0,
"scale": 42.0
}
}
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
{
"ok": true,
"result": true
}
{
"ok": true,
"result": true
}