setStickerMaskPosition method

Future<bool> setStickerMaskPosition(
  1. String sticker,
  2. MaskPosition? maskPosition
)

Use this method to change the MaskPosition of a mask sticker. The sticker must belong to a sticker set that was created by the bot.

Returns True on success.

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

Implementation

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