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? ttl,
})
override

Implementation

@override
InputMessagePhoto copyWith({
  InputFile? photo,
  InputThumbnail? thumbnail,
  List<int>? addedStickerFileIds,
  int? width,
  int? height,
  FormattedText? caption,
  int? ttl,
}) => 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,
  ttl: ttl ?? this.ttl,
);