copyWith method
SendEphemeralMessage
copyWith({
- int? chatId,
- MessageTopic? topicId,
- int? receiverUserId,
- int? callbackQueryId,
- bool? replaceCallbackQueryMessage,
- InputMessageReplyTo? replyTo,
- bool? protectContent,
- int? sendingId,
- bool? onlyPreview,
- ReplyMarkup? replyMarkup,
- InputMessageContent? inputMessageContent,
Implementation
SendEphemeralMessage copyWith({
int? chatId,
MessageTopic? topicId,
int? receiverUserId,
int? callbackQueryId,
bool? replaceCallbackQueryMessage,
InputMessageReplyTo? replyTo,
bool? protectContent,
int? sendingId,
bool? onlyPreview,
ReplyMarkup? replyMarkup,
InputMessageContent? inputMessageContent,
}) =>
SendEphemeralMessage(
chatId: chatId ?? this.chatId,
topicId: topicId ?? this.topicId,
receiverUserId: receiverUserId ?? this.receiverUserId,
callbackQueryId: callbackQueryId ?? this.callbackQueryId,
replaceCallbackQueryMessage:
replaceCallbackQueryMessage ?? this.replaceCallbackQueryMessage,
replyTo: replyTo ?? this.replyTo,
protectContent: protectContent ?? this.protectContent,
sendingId: sendingId ?? this.sendingId,
onlyPreview: onlyPreview ?? this.onlyPreview,
replyMarkup: replyMarkup ?? this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);