WebhookInfo

@Serializable
data class WebhookInfo(    val url: String,     val awaitDelivery: Int,     val maxConnections: Int = 40,     val customCertificate: Boolean = false,     val allowedUpdates: List<String> = ALL_UPDATES_LIST,     val lastErrorDate: TelegramDate? = null,     val lastSynchronizationErrorDate: TelegramDate? = null,     val lastErrorMessage: String? = null)

Constructors

Link copied to clipboard
constructor(    url: String,     awaitDelivery: Int,     maxConnections: Int = 40,     customCertificate: Boolean = false,     allowedUpdates: List<String> = ALL_UPDATES_LIST,     lastErrorDate: TelegramDate? = null,     lastSynchronizationErrorDate: TelegramDate? = null,     lastErrorMessage: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "allowed_updates")
val allowedUpdates: List<String>
Link copied to clipboard
@SerialName(value = "pending_update_count")
val awaitDelivery: Int
Link copied to clipboard
@SerialName(value = "has_custom_certificate")
val customCertificate: Boolean = false
Link copied to clipboard
@Transient
val hasError: Boolean
Link copied to clipboard
@Transient
val isNotUseWebhook: Boolean
Link copied to clipboard
@SerialName(value = "last_error_date")
val lastErrorDate: TelegramDate? = null
Link copied to clipboard
@SerialName(value = "last_error_message")
val lastErrorMessage: String? = null
Link copied to clipboard
@SerialName(value = "last_synchronization_error_date")
val lastSynchronizationErrorDate: TelegramDate? = null
Link copied to clipboard
@SerialName(value = "max_connections")
val maxConnections: Int = 40
Link copied to clipboard
@SerialName(value = "url")
val url: String