replaceStickerInSet
Returns boolean ↗
Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet.
Required: user_id, name, old_sticker, 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("replace_sticker_in_set", { user_id: 0, name: "...", old_sticker: "...", sticker: { /* InputSticker */ }})Parameters
user_id number Required
User identifier of the sticker set owner.
name string Required
Sticker set name.
old_sticker string Required
File identifier of the replaced sticker.
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 remains unchanged.