copyWith method
SendMessage
copyWith({
- int? chatId,
- int? messageThreadId,
- MessageReplyTo? replyTo,
- MessageSendOptions? options,
- ReplyMarkup? replyMarkup,
- InputMessageContent? inputMessageContent,
Implementation
SendMessage copyWith({
int? chatId,
int? messageThreadId,
MessageReplyTo? replyTo,
MessageSendOptions? options,
ReplyMarkup? replyMarkup,
InputMessageContent? inputMessageContent,
}) =>
SendMessage(
chatId: chatId ?? this.chatId,
messageThreadId: messageThreadId ?? this.messageThreadId,
replyTo: replyTo ?? this.replyTo,
options: options ?? this.options,
replyMarkup: replyMarkup ?? this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);