Link Search Menu Expand Document

Method: stickers.createStickerSet

Back to methods index

Create a stickerset, bots only.


masksBoolWhether this is a mask stickersetOptional
animatedBoolWhether this is an animated stickersetOptional
videosBoolWhether this is a video stickersetOptional
emojisBoolWhether this is a custom emoji stickerset.Optional
text_colorBoolWhether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only.Optional
user_idUsername, chat ID, Update, Message or InputUserStickerset ownerOptional
titlestringStickerset name, 1-64 charsYes
short_namestringShort name of sticker set, to be used in sticker deep links ». Can contain only english letters, digits and underscores. Must begin with a letter, can’t contain consecutive underscores and, if called by a bot, must end in "_by_<bot_username>". <bot_username> is case insensitive. 1-64 characters.Yes
thumbMessageMedia, Update, Message or InputDocumentThumbnailOptional
stickersArray of InputStickerSetItemStickersYes
softwarestringUsed when importing stickers using the sticker import SDKs, specifies the name of the software that created the stickersOptional

Return type: messages.StickerSet

Can bots use this method: YES

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$messages_StickerSet = $MadelineProto->stickers->createStickerSet(masks: Bool, animated: Bool, videos: Bool, emojis: Bool, text_color: Bool, user_id: InputUser, title: 'string', short_name: 'string', thumb: InputDocument, stickers: [InputStickerSetItem, InputStickerSetItem], software: 'string', );