replaceStickerInStickerSet

Replace a sticker in a sticker set.

Parameters

currentStickerFileId: string

The identifier of the current sticker.

newSticker: InputSticker

The new sticker to use.

userId?: ID

The identifier of the owner of the sticker set. Required for bots. Bot-only.

Result

void

Syntax

// Required parameters only.
await client.replaceStickerInStickerSet(currentStickerFileId, newSticker);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.replaceStickerInStickerSet(currentStickerFileId, newSticker, { userId });