getCustomEmojiStickers method

Future<List<Sticker>> getCustomEmojiStickers(
  1. List<String> customEmojiIds
)

Use this method to get information about custom emoji stickers by their identifiers.

Returns an Array of Sticker objects.

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

Implementation

Future<List<Sticker>> getCustomEmojiStickers(
    List<String> customEmojiIds) async {
  var requestUrl = _apiUri('getCustomEmojiStickers');
  var body = <String, dynamic>{
    'custom_emoji_ids': jsonEncode(customEmojiIds)
  };
  return (await HttpClient.httpPost(requestUrl, body: body))
      .map<Sticker>((sticker) => Sticker.fromJson(sticker))
      .toList();
}