copyWith method
InputMessagePhoto
copyWith({
- InputPhoto? photo,
- FormattedText? caption,
- bool? showCaptionAboveMedia,
- MessageSelfDestructType? selfDestructType,
- 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,
);