addStickerToStickerSet

Add a sticker to a sticker set.

Parameters

slug: string

The slug of the sticker set or its link.

sticker: InputSticker

The sticker to add.

userId?: ID

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

Result

void

Syntax

// Required parameters only.
await client.addStickerToStickerSet(slug, sticker);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.addStickerToStickerSet(slug, sticker, { userId });