copyWith method

OpenWebApp copyWith({
  1. int? chatId,
  2. int? botUserId,
  3. String? url,
  4. MessageTopic? topicId,
  5. InputMessageReplyTo? replyTo,
  6. WebAppOpenParameters? parameters,
})

Implementation

OpenWebApp copyWith({
  int? chatId,
  int? botUserId,
  String? url,
  MessageTopic? topicId,
  InputMessageReplyTo? replyTo,
  WebAppOpenParameters? parameters,
}) =>
    OpenWebApp(
      chatId: chatId ?? this.chatId,
      botUserId: botUserId ?? this.botUserId,
      url: url ?? this.url,
      topicId: topicId ?? this.topicId,
      replyTo: replyTo ?? this.replyTo,
      parameters: parameters ?? this.parameters,
    );