copyWith method

  1. @override
InputMessagePhoto copyWith({
  1. InputFile? photo,
  2. InputThumbnail? thumbnail,
  3. List<int>? addedStickerFileIds,
  4. int? width,
  5. int? height,
  6. FormattedText? caption,
  7. int? selfDestructTime,
  8. bool? hasSpoiler,
})
override

Implementation

@override
InputMessagePhoto copyWith({
  InputFile? photo,
  InputThumbnail? thumbnail,
  List<int>? addedStickerFileIds,
  int? width,
  int? height,
  FormattedText? caption,
  int? selfDestructTime,
  bool? hasSpoiler,
}) =>
    InputMessagePhoto(
      photo: photo ?? this.photo,
      thumbnail: thumbnail ?? this.thumbnail,
      addedStickerFileIds: addedStickerFileIds ?? this.addedStickerFileIds,
      width: width ?? this.width,
      height: height ?? this.height,
      caption: caption ?? this.caption,
      selfDestructTime: selfDestructTime ?? this.selfDestructTime,
      hasSpoiler: hasSpoiler ?? this.hasSpoiler,
    );