InputSticker constructor

const InputSticker({
  1. @JsonKey(name: 'sticker') @InputFileConverter() required InputFile sticker,
  2. @JsonKey(name: 'format') required InputStickerFormat format,
  3. @JsonKey(name: 'emoji_list') required List<String> emojiList,
  4. @JsonKey(name: 'mask_position') MaskPosition? maskPosition,
  5. @JsonKey(name: 'keywords') List<String>? keywords,
})

Creates the Input Sticker object.

Implementation

const factory InputSticker({
  /// The added sticker. Pass a file_id as a String to send a file that
  /// already exists on the Telegram servers, pass an HTTP URL as a String for
  /// Telegram to get a file from the Internet, or upload a new one using
  /// multipart/form-data. Animated and video stickers can't be uploaded via
  /// HTTP URL. More information on Sending Files ยป
  @JsonKey(name: 'sticker') @InputFileConverter() required InputFile sticker,

  /// Format of the added sticker, must be one of "static" for a .WEBP or .PNG
  /// image, "animated" for a .TGS animation, "video" for a WEBM video
  @JsonKey(name: 'format') required InputStickerFormat format,

  /// List of 1-20 emoji associated with the sticker
  @JsonKey(name: 'emoji_list') required List<String> emojiList,

  /// Optional. Position where the mask should be placed on faces. For "mask"
  /// stickers only.
  @JsonKey(name: 'mask_position') MaskPosition? maskPosition,

  /// Optional. List of 0-20 search keywords for the sticker with total length
  /// of up to 64 characters. For "regular" and "custom_emoji" stickers only.
  @JsonKey(name: 'keywords') List<String>? keywords,
}) = _InputSticker;