copyWith method

InputMessageVideo copyWith({
  1. InputVideo? video,
  2. FormattedText? caption,
  3. bool? showCaptionAboveMedia,
  4. MessageSelfDestructType? selfDestructType,
  5. bool? hasSpoiler,
})

Implementation

InputMessageVideo copyWith({
  InputVideo? video,
  FormattedText? caption,
  bool? showCaptionAboveMedia,
  MessageSelfDestructType? selfDestructType,
  bool? hasSpoiler,
}) => InputMessageVideo(
  video: video ?? this.video,
  caption: caption ?? this.caption,
  showCaptionAboveMedia: showCaptionAboveMedia ?? this.showCaptionAboveMedia,
  selfDestructType: selfDestructType ?? this.selfDestructType,
  hasSpoiler: hasSpoiler ?? this.hasSpoiler,
);