copyWith method

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

Implementation

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