InputMediaLink constructor

const InputMediaLink({
  1. @JsonKey.new(name: 'type') @Default.new(InputMediaType.link) InputMediaType type,
  2. @JsonKey.new(name: 'url') required String url,
})

Creates a new InputMediaLink object.

Implementation

const factory InputMediaLink({
  /// Type of the media, must be link
  @JsonKey(name: 'type')
  @Default(InputMediaType.link)
  final InputMediaType type,

  /// HTTP URL of the link
  @JsonKey(name: 'url') required final String url,
}) = _InputMediaLink;