copyWith method

SendEphemeralMessage copyWith({
  1. int? chatId,
  2. MessageTopic? topicId,
  3. int? receiverUserId,
  4. int? callbackQueryId,
  5. InputMessageReplyTo? replyTo,
  6. int? sendingId,
  7. bool? onlyPreview,
  8. ReplyMarkup? replyMarkup,
  9. 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,
);