copyWith method

AnswerCallbackQuery copyWith({
  1. int? callbackQueryId,
  2. String? text,
  3. bool? showAlert,
  4. String? url,
  5. int? cacheTime,
})

Implementation

AnswerCallbackQuery copyWith({
  int? callbackQueryId,
  String? text,
  bool? showAlert,
  String? url,
  int? cacheTime,
}) =>
    AnswerCallbackQuery(
      callbackQueryId: callbackQueryId ?? this.callbackQueryId,
      text: text ?? this.text,
      showAlert: showAlert ?? this.showAlert,
      url: url ?? this.url,
      cacheTime: cacheTime ?? this.cacheTime,
    );