copyWith method
InputMessageVideoNote
copyWith({
- InputFile? videoNote,
- InputThumbnail? thumbnail()?,
- int? duration,
- int? length,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
InputMessageVideoNote copyWith({
InputFile? videoNote,
InputThumbnail? Function()? thumbnail,
int? duration,
int? length,
}) =>
InputMessageVideoNote(
videoNote: videoNote ?? this.videoNote,
thumbnail: thumbnail != null ? thumbnail() : this.thumbnail,
duration: duration ?? this.duration,
length: length ?? this.length,
);