copyWith method
InputMessageReplyToExternalMessage
copyWith({
- int? chatId,
- int? messageId,
- InputTextQuote? quote()?,
- int? checklistTaskId,
- String? pollOptionId,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
InputMessageReplyToExternalMessage copyWith({
int? chatId,
int? messageId,
InputTextQuote? Function()? quote,
int? checklistTaskId,
String? pollOptionId,
}) => InputMessageReplyToExternalMessage(
chatId: chatId ?? this.chatId,
messageId: messageId ?? this.messageId,
quote: quote != null ? quote() : this.quote,
checklistTaskId: checklistTaskId ?? this.checklistTaskId,
pollOptionId: pollOptionId ?? this.pollOptionId,
);