InputMediaSticker constructor
const
InputMediaSticker({
- @JsonKey.new(name: 'type') @Default.new(InputMediaType.sticker) InputMediaType type,
- @JsonKey.new(name: 'media') @InputFileConverter() required InputFile media,
- @JsonKey.new(name: 'emoji') String? emoji,
Creates a new InputMediaSticker object.
Implementation
const factory InputMediaSticker({
/// Type of the media, must be sticker
@JsonKey(name: 'type')
@Default(InputMediaType.sticker)
final InputMediaType type,
/// File to send. Pass a file_id to send a file that exists on the Telegram
/// servers (recommended), pass an HTTP URL for Telegram to get a .WEBP
/// sticker from the Internet, or pass “attach://`<file_attach_name>`” to
/// upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data
/// under `<file_attach_name>` name.
@JsonKey(name: 'media')
@InputFileConverter()
required final InputFile media,
/// Optional. Emoji associated with the sticker; only for just uploaded
/// stickers.
@JsonKey(name: 'emoji') final String? emoji,
}) = _InputMediaSticker;