class Tourmaline::WebhookInfo
- Tourmaline::WebhookInfo
- Reference
- Object
Overview
Describes the current status of a webhook.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#allowed_updates : Array(String)
Optional.
-
#allowed_updates=(allowed_updates : Array(String))
Optional.
-
#has_custom_certificate=(has_custom_certificate : Bool)
True, if a custom certificate was provided for webhook certificate checks
-
#has_custom_certificate? : Bool
True, if a custom certificate was provided for webhook certificate checks
-
#ip_address : String | Nil
Optional.
-
#ip_address=(ip_address : String | Nil)
Optional.
- #last_error_date : Time | Nil
- #last_error_date=(last_error_date : Time | Nil)
-
#last_error_message : String | Nil
Optional.
-
#last_error_message=(last_error_message : String | Nil)
Optional.
- #last_synchronization_error_date : Time | Nil
- #last_synchronization_error_date=(last_synchronization_error_date : Time | Nil)
-
#max_connections : Int32 | Int64 | Nil
Optional.
-
#max_connections=(max_connections : Int32 | Int64 | Nil)
Optional.
-
#pending_update_count : Int32 | Int64
Number of updates awaiting delivery
-
#pending_update_count=(pending_update_count : Int32 | Int64)
Number of updates awaiting delivery
-
#url : String
Webhook URL, may be empty if webhook is not set up
-
#url=(url : String)
Webhook URL, may be empty if webhook is not set up
Constructor Detail
Instance Method Detail
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
True, if a custom certificate was provided for webhook certificate checks
True, if a custom certificate was provided for webhook certificate checks
Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
Number of updates awaiting delivery