Skip to content

class Tourmaline::WebhookInfo
inherits Reference #

Describes the current status of a webhook.

Included modules

JSON::Serializable

Constructors#

.new(url, has_custom_certificate, pending_update_count, ip_address : String? = nil, last_error_date : Int32 | Int64 | Nil = nil, last_error_message : String? = nil, last_synchronization_error_date : Int32 | Int64 | Nil = nil, max_connections : Int32 | Int64 | Nil = nil, allowed_updates : Array(String) = [] of String) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#allowed_updates : Array(String) #

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

View source

#allowed_updates=(allowed_updates : Array(String)) #

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

View source

#has_custom_certificate=(has_custom_certificate : Bool) #

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

View source

#has_custom_certificate? : Bool #

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

View source

#ip_address : String? #

Optional. Currently used webhook IP address

View source

#ip_address=(ip_address : String?) #

Optional. Currently used webhook IP address

View source

#last_error_date : Time? #

View source

#last_error_date=(last_error_date : Time?) #

View source

#last_error_message : String? #

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

View source

#last_error_message=(last_error_message : String?) #

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

View source

#last_synchronization_error_date : Time? #

View source

#last_synchronization_error_date=(last_synchronization_error_date : Time?) #

View source

#max_connections : Int32 | Int64 | Nil #

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

View source

#max_connections=(max_connections : Int32 | Int64 | Nil) #

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

View source

#pending_update_count : Int32 | Int64 #

Number of updates awaiting delivery

View source

#pending_update_count=(pending_update_count : Int32 | Int64) #

Number of updates awaiting delivery

View source

#url : String #

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

View source

#url=(url : String) #

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

View source