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)
#
(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)
Methods#
#allowed_updates : Array(String)
#
: Array(String)
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
#allowed_updates=(allowed_updates : Array(String))
#
(allowed_updates : Array(String))
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
#has_custom_certificate=(has_custom_certificate : Bool)
#
(has_custom_certificate : Bool)
True, if a custom certificate was provided for webhook certificate checks
#has_custom_certificate? : Bool
#
: Bool
True, if a custom certificate was provided for webhook certificate checks
#last_error_message : String?
#
: String?
Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
#last_error_message=(last_error_message : String?)
#
(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
#max_connections : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
#max_connections=(max_connections : Int32 | Int64 | Nil)
#
(max_connections : Int32 | Int64 | Nil)
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
#pending_update_count=(pending_update_count : Int32 | Int64)
#
(pending_update_count : Int32 | Int64)
Number of updates awaiting delivery