createNewStickerSet
Returns boolean ↗
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.
Required: user_id, name, title, stickers · Optional: 2 parameters
Limits:
- name: 1-64 characters
- title: 1-64 characters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("create_new_sticker_set", { user_id: 0, name: "...", title: "...", stickers: []})Parameters
user_id number Required
User identifier of created sticker set owner.
name string Required
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.
title string Required
Sticker set title, 1-64 characters.
stickers InputSticker[] Required
A JSON-serialized list of 1-50 initial stickers to be added to the sticker set.
sticker_type string
Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.
needs_repainting boolean
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.
Related methods
createChatInviteLink · createChatSubscriptionInviteLink · createForumTopic · createInvoiceLink