setStickerKeywords method

Future<bool> setStickerKeywords(
  1. String sticker,
  2. List<String>? keywords
)

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.

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

Implementation

Future<bool> setStickerKeywords(
    String sticker, List<String>? keywords) async {
  var requestUrl = _apiUri('setStickerKeywords');
  var body = <String, dynamic>{
    'sticker': sticker,
    'keywords': keywords == null ? null : jsonEncode(keywords),
  };
  return await HttpClient.httpPost(requestUrl, body: body);
}