class Telegram::API::WebhookInfo
- Telegram::API::WebhookInfo
- Telegram::API::Type
- Reference
- Object
Overview
Contains information about the current status of a webhook.
Defined in:
telegram/api/generated/types.crConstructors
- .new(url : String, has_custom_certificate : Bool, pending_update_count : Int32, ip_address : String | Nil = nil, last_error_date : Int32 | Nil = nil, last_error_message : String | Nil = nil, max_connections : Int32 | Nil = nil, allowed_updates : Array(String) = Array(String).new)
-
.new(pull : JSON::PullParser)
Contains information about the current status of a webhook.
Instance Method Summary
-
#allowed_updates : Array(String)
Optional.
-
#allowed_updates=(allowed_updates : Array(String))
Optional.
-
#has_custom_certificate : Bool
True, if a custom certificate was provided for webhook certificate checks
-
#has_custom_certificate=(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 : Int32 | Nil
Optional.
-
#last_error_date=(last_error_date : Int32 | Nil)
Optional.
-
#last_error_message : String | Nil
Optional.
-
#last_error_message=(last_error_message : String | Nil)
Optional.
-
#max_connections : Int32 | Nil
Optional.
-
#max_connections=(max_connections : Int32 | Nil)
Optional.
-
#pending_update_count : Int32
Number of updates awaiting delivery
-
#pending_update_count=(pending_update_count : Int32)
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
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
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. Unix time for the most recent error that happened when trying to deliver an update via webhook
Optional. Unix time 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. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery