mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-02 22:59:48 +00:00
add support of WebhookInfo#lastSynchronizationErrorDate
This commit is contained in:
@@ -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"
|
||||
|
@@ -16,6 +16,8 @@ data class WebhookInfo(
|
||||
val allowedUpdates: List<String> = ALL_UPDATES_LIST,
|
||||
@SerialName(lastErrorDateField)
|
||||
val lastErrorDate: TelegramDate? = null,
|
||||
@SerialName(lastSynchronizationErrorDateField)
|
||||
val lastSynchronizationErrorDate: TelegramDate? = null,
|
||||
@SerialName(lastErrorMessageField)
|
||||
val lastErrorMessage: String? = null
|
||||
) {
|
||||
|
Reference in New Issue
Block a user