copyWith method
SendBusinessMessage
copyWith({
- String? businessConnectionId,
- int? chatId,
- InputMessageReplyTo? replyTo()?,
- bool? disableNotification,
- bool? protectContent,
- int? effectId,
- ReplyMarkup? replyMarkup()?,
- InputMessageContent? inputMessageContent,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
SendBusinessMessage copyWith({
String? businessConnectionId,
int? chatId,
InputMessageReplyTo? Function()? replyTo,
bool? disableNotification,
bool? protectContent,
int? effectId,
ReplyMarkup? Function()? replyMarkup,
InputMessageContent? inputMessageContent,
}) => SendBusinessMessage(
businessConnectionId: businessConnectionId ?? this.businessConnectionId,
chatId: chatId ?? this.chatId,
replyTo: replyTo != null ? replyTo() : this.replyTo,
disableNotification: disableNotification ?? this.disableNotification,
protectContent: protectContent ?? this.protectContent,
effectId: effectId ?? this.effectId,
replyMarkup: replyMarkup != null ? replyMarkup() : this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);