copyWith method
InputMessageForwarded
copyWith({
- int? fromChatId,
- int? messageId,
- bool? replaceVideoStartTimestamp,
- int? newVideoStartTimestamp,
- MessageCopyOptions? copyOptions()?,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
InputMessageForwarded copyWith({
int? fromChatId,
int? messageId,
bool? inGameShare,
bool? replaceVideoStartTimestamp,
int? newVideoStartTimestamp,
MessageCopyOptions? Function()? copyOptions,
}) => InputMessageForwarded(
fromChatId: fromChatId ?? this.fromChatId,
messageId: messageId ?? this.messageId,
inGameShare: inGameShare ?? this.inGameShare,
replaceVideoStartTimestamp:
replaceVideoStartTimestamp ?? this.replaceVideoStartTimestamp,
newVideoStartTimestamp:
newVideoStartTimestamp ?? this.newVideoStartTimestamp,
copyOptions: copyOptions != null ? copyOptions() : this.copyOptions,
);