copyWith method

  1. @override
InputMessageForwarded copyWith({
  1. int? fromChatId,
  2. int? messageId,
  3. bool? inGameShare,
  4. bool? replaceVideoStartTimestamp,
  5. int? newVideoStartTimestamp,
  6. 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,
);