InputMediaLink constructor
const
InputMediaLink({
- @JsonKey.new(name: 'type') @Default.new(InputMediaType.link) InputMediaType type,
- @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;