addStickerToSetTgs method

Future<bool> addStickerToSetTgs(
  1. String userId,
  2. String name,
  3. HttpFile tgsSticker,
  4. String emojis, {
  5. MaskPosition? maskPosition,
})
inherited

Use this method to add a new sticker to a set created by the bot.

Animated stickers can be added to animated sticker sets and only to them.

Animated sticker sets can have up to 50 stickers.

Static sticker sets can have up to 120 stickers.

Returns True on success.

Implementation

Future<bool> addStickerToSetTgs(
  String userId,
  String name,
  HttpFile tgsSticker,
  String emojis, {
  MaskPosition? maskPosition,
}) {
  return _client.apiCall(_token, 'addStickerToSet', {
    'user_id': userId,
    'name': name,
    'tgs_sticker': tgsSticker,
    'emojis': emojis,
    'mask_position': maskPosition,
  });
}