create_new_sticker_set¶
-
template<class Agent>
api_result<boolean_t, Agent&&> create_new_sticker_set(Agent &&agent, create_new_sticker_set_args_t args)¶
-
template<class Agent, class F>
void create_new_sticker_set(Agent &&agent, create_new_sticker_set_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<boolean_t>
.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. Returns True on success.
-
struct create_new_sticker_set_args_t¶
Arguments that should be passed to
create_new_sticker_set()
.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_<bot_username>”. <bot_username> is case insensitive. 1-64 characters.
Sticker set title, 1-64 characters
-
array_t<input_sticker_t> stickers¶
A JSON-serialized list of 1-50 initial stickers to be added to the sticker set
Format of stickers in the set, must be one of “static”, “animated”, “video”
-
optional_t<string_t> sticker_type¶
Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.
-
optional_t<boolean_t> needs_repainting¶
Pass True if stickers in the sticker set must be repainted to the color of text 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 sticker sets only
-
array_t<input_sticker_t> stickers¶