setCustomEmojiStickerSetThumbnail method

Future<bool> setCustomEmojiStickerSetThumbnail(
  1. String name, {
  2. String? customEmojiId,
})

Use this method to set the thumbnail of a custom emoji sticker set.

Returns True on success.

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

Implementation

Future<bool> setCustomEmojiStickerSetThumbnail(String name,
    {String? customEmojiId}) async {
  var requestUrl = _apiUri('setCustomEmojiStickerSetThumbnail');
  var body = <String, dynamic>{
    'name': name,
    'custom_emoji_id': customEmojiId,
  };
  return await HttpClient.httpPost(requestUrl, body: body);
}