setStickerEmojiList method

Future<bool> setStickerEmojiList(
  1. String sticker,
  2. List<String> emojiList
)

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.

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

Implementation

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