replaceStickerInSet
Replace an existing sticker in a Telegram sticker set with a new one by deleting the old sticker, adding the replacement, and setting its position in one call.
Instructions
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. 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 object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set remains unchanged.:x | |
| user_id | Yes | User identifier of the sticker set owner | |
| old_sticker | Yes | File identifier of the replaced sticker |