class

Tourmaline::WebhookInfo

Inherits JSON::Serializable / Reference / Object

Describes the current status of a webhook.

Constructors

new(url : String, has_custom_certificate : Bool, pending_update_count : Int32 | Int64, ip_address : String | Nil = nil, last_error_date : Int32 | Int64 | Nil = nil, last_error_message : String | Nil = nil, last_synchronization_error_date : Int32 | Int64 | Nil = nil, max_connections : Int32 | Int64 | Nil = nil, allowed_updates : Array(String) = [] of String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

allowed_updates

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

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

Source
has_custom_certificate=(has_custom_certificate : Bool)

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

Source
has_custom_certificate?

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

Source
ip_address

Optional. Currently used webhook IP address

Source
ip_address=(ip_address : String | Nil)

Optional. Currently used webhook IP address

Source
last_error_date

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

Source
last_error_date=(last_error_date : Time | Nil)

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

Source
last_error_message

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

Source
last_error_message=(last_error_message : String | Nil)

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

Source
last_synchronization_error_date

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

Source
last_synchronization_error_date=(last_synchronization_error_date : Time | Nil)

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

Source
max_connections

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

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

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

Source
pending_update_count

Number of updates awaiting delivery

Source
pending_update_count=(pending_update_count : Int32 | Int64)

Number of updates awaiting delivery

Source
url

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

Source
url=(url : String)

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

Source