WebhookInfo

data class WebhookInfo(url: String, has_custom_certificate: Boolean, pending_update_count: Long, ip_address: String?, last_error_date: Long?, last_error_message: String?, max_connections: Long?, allowed_updates: List<String>?) : TelegramModel

Contains information about the current status of a webhook.

Constructors

WebhookInfo
Link copied to clipboard
fun WebhookInfo(url: String, has_custom_certificate: Boolean, pending_update_count: Long, ip_address: String? = null, last_error_date: Long? = null, last_error_message: String? = null, max_connections: Long? = null, allowed_updates: List<String>? = null)
Creates a WebhookInfo.

Properties

allowed_updates
Link copied to clipboard
val allowed_updates: List<String>? = null
Optional.
has_custom_certificate
Link copied to clipboard
val has_custom_certificate: Boolean
True, if a custom certificate was provided for webhook certificate checks
ip_address
Link copied to clipboard
val ip_address: String? = null
Optional.
last_error_date
Link copied to clipboard
val last_error_date: Long? = null
Optional.
last_error_message
Link copied to clipboard
val last_error_message: String? = null
Optional.
max_connections
Link copied to clipboard
val max_connections: Long? = null
Optional.
pending_update_count
Link copied to clipboard
val pending_update_count: Long
Number of updates awaiting delivery
url
Link copied to clipboard
val url: String
Webhook URL, may be empty if webhook is not set up