copyWith method

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