setStickerKeywords()
Use this method to change search keywords 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 |
keywords | string[] | optional | A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters |
returns
boolean
usage in yaebal
setStickerKeywords is directly typed on Api — call it straight off bot.api.
import type { SetStickerKeywordsParams } from "@yaebal/types";
await bot.api.setStickerKeywords({
sticker: "...",
} satisfies SetStickerKeywordsParams);official Bot API docs: https://core.telegram.org/bots/api/#setstickerkeywords