copyWith method

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

Implementation

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