copyWith method

ForwardMessages copyWith({
  1. int? chatId,
  2. int? fromChatId,
  3. List<int>? messageIds,
  4. MessageSendOptions? options,
  5. bool? sendCopy,
  6. bool? removeCaption,
  7. bool? onlyPreview,
})

Implementation

ForwardMessages copyWith({
  int? chatId,
  int? fromChatId,
  List<int>? messageIds,
  MessageSendOptions? options,
  bool? sendCopy,
  bool? removeCaption,
  bool? onlyPreview,
}) => ForwardMessages(
  chatId: chatId ?? this.chatId,
  fromChatId: fromChatId ?? this.fromChatId,
  messageIds: messageIds ?? this.messageIds,
  options: options ?? this.options,
  sendCopy: sendCopy ?? this.sendCopy,
  removeCaption: removeCaption ?? this.removeCaption,
  onlyPreview: onlyPreview ?? this.onlyPreview,
);