replaceStickerInSet
Update a sticker set by swapping an existing sticker for a new one, preserving its position in the set.
Instructions
Replace an existing sticker in a sticker set with a new one. The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet. Returns True on success.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"name": "<name>",
"old_sticker": "<old_sticker>",
"sticker": "<sticker>"
},
"name": "replaceStickerInSet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Sticker set name. | |
| sticker | Yes | An InputSticker object with information about the new sticker. Must include sticker, format, emoji_list, and optionally mask_position and keywords. | |
| user_id | Yes | User identifier of the sticker set owner. | |
| old_sticker | Yes | File identifier of the replaced sticker. |