setStickerPositionInSet method

Future<bool> setStickerPositionInSet(
  1. String sticker,
  2. int position
)

Use this method to move a sticker in a set created by the bot to a specific position

Returns True on success.

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

Implementation

Future<bool> setStickerPositionInSet(String sticker, int position) async {
  var requestUrl = _apiUri('setStickerPositionInSet');
  var body = <String, dynamic>{
    'sticker': sticker,
    'position': position,
  };
  return await HttpClient.httpPost(requestUrl, body: body);
}