InputRichBlock.animation constructor
const
InputRichBlock.animation({
- @JsonKey.new(name: 'type') @Default.new(RichBlockType.animation) RichBlockType type,
- @JsonKey.new(name: 'animation') required InputMediaAnimation animation,
- @JsonKey.new(name: 'caption') RichBlockCaption? caption,
A block with an animation, corresponding to the HTML tag <video>.
Implementation
const factory InputRichBlock.animation({
/// Type of the block, always "animation"
@JsonKey(name: 'type') @Default(RichBlockType.animation) RichBlockType type,
/// The animation
@JsonKey(name: 'animation') required InputMediaAnimation animation,
/// Optional. Caption of the block
@JsonKey(name: 'caption') RichBlockCaption? caption,
}) = InputRichBlockAnimation;