copyWith method

SendMessage copyWith({
  1. int? chatId,
  2. MessageTopic? topicId,
  3. InputMessageReplyTo? replyTo,
  4. MessageSendOptions? options,
  5. ReplyMarkup? replyMarkup,
  6. InputMessageContent? inputMessageContent,
})

Implementation

SendMessage copyWith({
  int? chatId,
  MessageTopic? topicId,
  InputMessageReplyTo? replyTo,
  MessageSendOptions? options,
  ReplyMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
}) => SendMessage(
  chatId: chatId ?? this.chatId,
  topicId: topicId ?? this.topicId,
  replyTo: replyTo ?? this.replyTo,
  options: options ?? this.options,
  replyMarkup: replyMarkup ?? this.replyMarkup,
  inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);