copyWith method

  1. @override
InputMessageDocument copyWith({
  1. InputFile? document,
  2. InputThumbnail? thumbnail,
  3. bool? disableContentTypeDetection,
  4. FormattedText? caption,
})
override

Implementation

@override
InputMessageDocument copyWith({
  InputFile? document,
  InputThumbnail? thumbnail,
  bool? disableContentTypeDetection,
  FormattedText? caption,
}) => InputMessageDocument(
  document: document ?? this.document,
  thumbnail: thumbnail ?? this.thumbnail,
  disableContentTypeDetection: disableContentTypeDetection ?? this.disableContentTypeDetection,
  caption: caption ?? this.caption,
);