setStickerEmojiList()
Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
sticker | string | required | File identifier of the sticker |
emoji_list | string[] | required | A JSON-serialized list of 1-20 emoji associated with the sticker |
returns
boolean
usage in yaebal
setStickerEmojiList is directly typed on Api — call it straight off bot.api.
import type { SetStickerEmojiListParams } from "@yaebal/types";
await bot.api.setStickerEmojiList({
sticker: "...",
emoji_list: [],
} satisfies SetStickerEmojiListParams);official Bot API docs: https://core.telegram.org/bots/api/#setstickeremojilist