Method: stickers.createStickerSet
Create a stickerset, bots only.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
masks | Bool | Whether this is a mask stickerset | Optional |
animated | Bool | Whether this is an animated stickerset | Optional |
videos | Bool | Whether this is a video stickerset | Optional |
user_id | Username, chat ID, Update, Message or InputUser | Stickerset owner | Optional |
title | string | Stickerset name, 1-64 chars | Yes |
short_name | string | Short 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 |
thumb | MessageMedia, Update, Message or InputDocument | Thumbnail | Optional |
stickers | Array of InputStickerSetItem | Stickers | Yes |
software | string | Used when importing stickers using the sticker import SDKs, specifies the name of the software that created the stickers | Optional |
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('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
// PHP 8+ syntax, use an array on PHP 7.
$messages_StickerSet = $MadelineProto->stickers->createStickerSet(masks: Bool, animated: Bool, videos: Bool, user_id: InputUser, title: 'string', short_name: 'string', thumb: InputDocument, stickers: [InputStickerSetItem, InputStickerSetItem], software: 'string', );