From ba85b8657dfb1e8199110abbb713788adc184a2e Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 17 Apr 2022 19:58:05 +0600 Subject: [PATCH] add support of WebhookInfo#lastSynchronizationErrorDate --- .../src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt | 1 + .../commonMain/kotlin/dev/inmo/tgbotapi/types/WebhookInfo.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt index b097251344..f81d042e8b 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt @@ -154,6 +154,7 @@ const val dropPendingUpdatesField = "drop_pending_updates" const val hasCustomCertificateField = "has_custom_certificate" const val pendingUpdateCountField = "pending_update_count" const val lastErrorDateField = "last_error_date" +const val lastSynchronizationErrorDateField = "last_synchronization_error_date" const val lastErrorMessageField = "last_error_message" const val votesCountField = "voter_count" const val isClosedField = "is_closed" diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/WebhookInfo.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/WebhookInfo.kt index 3596d56b12..f4b92e169f 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/WebhookInfo.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/WebhookInfo.kt @@ -16,6 +16,8 @@ data class WebhookInfo( val allowedUpdates: List = ALL_UPDATES_LIST, @SerialName(lastErrorDateField) val lastErrorDate: TelegramDate? = null, + @SerialName(lastSynchronizationErrorDateField) + val lastSynchronizationErrorDate: TelegramDate? = null, @SerialName(lastErrorMessageField) val lastErrorMessage: String? = null ) {