WebhookInfo

fun WebhookInfo(url: String, hasCustomCertificate: Boolean, pendingUpdateCount: Int, ipAddress: String? = null, lastErrorDate: Int? = null, lastErrorMessage: String? = null, maxConnections: Int? = null, allowedUpdates: List<String> = emptyList())

Parameters

url

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

hasCustomCertificate

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

pendingUpdateCount

Number of updates awaiting delivery

ipAddress

Optional. Currently used webhook IP address

lastErrorDate

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

lastErrorMessage

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

maxConnections

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

allowedUpdates

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