setStickerMaskPosition method
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.
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);
}