copyWith method

SendMessage copyWith({
  1. int? chatId,
  2. int? messageThreadId,
  3. int? replyToMessageId,
  4. MessageSendOptions? options,
  5. ReplyMarkup? replyMarkup,
  6. InputMessageContent? inputMessageContent,
})

Implementation

SendMessage copyWith({
  int? chatId,
  int? messageThreadId,
  int? replyToMessageId,
  MessageSendOptions? options,
  ReplyMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
}) => SendMessage(
  chatId: chatId ?? this.chatId,
  messageThreadId: messageThreadId ?? this.messageThreadId,
  replyToMessageId: replyToMessageId ?? this.replyToMessageId,
  options: options ?? this.options,
  replyMarkup: replyMarkup ?? this.replyMarkup,
  inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);