replaceStickerInSet

inline fun replaceStickerInSet(userId: Long, name: String, oldSticker: String, sticker: InputSticker): ReplaceStickerInSetAction

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.

Api reference

Parameters

userId

User identifier of the sticker set owner

name

Sticker set name

oldSticker

File identifier of the replaced sticker

sticker

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.