stickers.createStickerSet
Create a stickerset, bots only.
Example
TL schema
Parameters
Name | Type | Description |
flags | Flags, see TL conditional fields | |
masks | Whether this is a mask stickerset | |
animated | Whether this is an animated stickerset | |
user_id | Stickerset owner | |
title | Stickerset name, 1-64 chars | |
short_name | Sticker set name. Can contain only English letters, digits and underscores. Must end with "by" ( is case insensitive); 1-64 characters | |
thumb | Thumbnail | |
stickers | Stickers |
Result
Possible errors
Code | Type | Description |
400 | BOT_MISSING | This method can only be run by a bot |
400 | PACK_SHORT_NAME_INVALID | Short pack name invalid |
400 | PACK_SHORT_NAME_OCCUPIED | A stickerpack with this name already exists |
400 | PACK_TITLE_INVALID | The stickerpack title is invalid |
400 | PEER_ID_INVALID | The provided peer id is invalid |
400 | SHORTNAME_OCCUPY_FAILED | An internal error occurred |
400 | STICKERS_EMPTY | No sticker provided |
400 | STICKER_EMOJI_INVALID | Sticker emoji invalid |
400 | STICKER_FILE_INVALID | Sticker file invalid |
400 | STICKER_PNG_DIMENSIONS | Sticker png dimensions invalid |
400 | STICKER_PNG_NOPNG | One of the specified stickers is not a valid PNG file |
400 | USER_ID_INVALID | The provided user ID is invalid |
Can bots use this methd ?
yes
Related pages
Last updated