copyWith method

InputMessagePhoto copyWith({
  1. InputPhoto? photo,
  2. FormattedText? caption,
  3. bool? showCaptionAboveMedia,
  4. MessageSelfDestructType? selfDestructType,
  5. bool? hasSpoiler,
})

Implementation

InputMessagePhoto copyWith({
  InputPhoto? photo,
  FormattedText? caption,
  bool? showCaptionAboveMedia,
  MessageSelfDestructType? selfDestructType,
  bool? hasSpoiler,
}) => InputMessagePhoto(
  photo: photo ?? this.photo,
  caption: caption ?? this.caption,
  showCaptionAboveMedia: showCaptionAboveMedia ?? this.showCaptionAboveMedia,
  selfDestructType: selfDestructType ?? this.selfDestructType,
  hasSpoiler: hasSpoiler ?? this.hasSpoiler,
);