addStickerToSet
Returns boolean ↗
Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers.
Required: user_id, name, sticker
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("add_sticker_to_set", { user_id: 0, name: "...", sticker: { /* InputSticker */ }})Parameters
user_id number Required
User identifier of sticker set owner.
name string Required
Sticker set name.
sticker InputSticker Required
A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn’t changed.