copyWith method
InputMessagePhoto
copyWith({
- InputFile? photo,
- InputThumbnail? thumbnail,
- List<
int> ? addedStickerFileIds, - int? width,
- int? height,
- int? selfDestructTime,
- 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,
);