Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_autoquote/deps.deno.ts>Api#setStickerKeywords

grammY plugin that forces all sent messages to quote the last received one
Go to Latest
method Api.prototype.setStickerKeywords
import { Api } from "https://deno.land/x/grammy_autoquote@v2.0.0/deps.deno.ts";

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

sticker: string

File identifier of the sticker

keywords: string[]

A list of 0-20 search keywords for the sticker with total length of up to 64 characters

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#setstickerkeywords