WebhookInfo

data class WebhookInfo(val url: String, val hasCustomCertificate: Boolean = false, val pendingUpdateCount: Int, val ipAddress: String? = null, val lastErrorDate: Int? = null, val lastErrorMessage: String? = null, val lastSynchronizationErrorDate: Int? = null, val maxConnections: Int? = null, val allowedUpdates: List<String>? = null)(source)

WebhookInfo

Describes the current status of a webhook.

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(url: String, hasCustomCertificate: Boolean = false, pendingUpdateCount: Int, ipAddress: String? = null, lastErrorDate: Int? = null, lastErrorMessage: String? = null, lastSynchronizationErrorDate: Int? = null, maxConnections: Int? = null, allowedUpdates: List<String>? = null)

Properties

Link copied to clipboard
@SerialName(value = "allowed_updates")
val allowedUpdates: List<String>? = null

Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member

Link copied to clipboard
@SerialName(value = "has_custom_certificate")
val hasCustomCertificate: Boolean = false

True, if a custom certificate was provided for webhook certificate checks

Link copied to clipboard
@SerialName(value = "ip_address")
val ipAddress: String? = null

Optional. Currently used webhook IP address

Link copied to clipboard
@SerialName(value = "last_error_date")
val lastErrorDate: Int? = null

Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook

Link copied to clipboard
@SerialName(value = "last_error_message")
val lastErrorMessage: String? = null

Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook

Link copied to clipboard
@SerialName(value = "last_synchronization_error_date")
val lastSynchronizationErrorDate: Int? = null

Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters

Link copied to clipboard
@SerialName(value = "max_connections")
val maxConnections: Int? = null

Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery

Link copied to clipboard
@SerialName(value = "pending_update_count")
val pendingUpdateCount: Int

Number of updates awaiting delivery

Link copied to clipboard
val url: String

Webhook URL, may be empty if webhook is not set up