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.
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. |