copyWith method
SendEphemeralMessage
copyWith({
- int? chatId,
- MessageTopic? topicId,
- int? receiverUserId,
- int? callbackQueryId,
- InputMessageReplyTo? replyTo,
- int? sendingId,
- bool? onlyPreview,
- ReplyMarkup? replyMarkup,
- InputMessageContent? inputMessageContent,
Implementation
SendEphemeralMessage copyWith({
int? chatId,
MessageTopic? topicId,
int? receiverUserId,
int? callbackQueryId,
InputMessageReplyTo? replyTo,
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,
replyTo: replyTo ?? this.replyTo,
sendingId: sendingId ?? this.sendingId,
onlyPreview: onlyPreview ?? this.onlyPreview,
replyMarkup: replyMarkup ?? this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);