class
Hamilton::Types::WebhookInfo
- Hamilton::Types::WebhookInfo
- Reference
- Object
Overview
Describes the current status of a webhook.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/webhook_info.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#allowed_updates : Array(String) | Nil
A list of update types the bot is subscribed to.
-
#allowed_updates=(allowed_updates : Array(String) | Nil)
A list of update types the bot is subscribed to.
-
#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
Currently used webhook IP address.
-
#ip_address=(ip_address : String | Nil)
Currently used webhook IP address.
-
#last_error_date : Int32 | Nil
Unix time for the most recent error that happened when trying to deliver an update via webhook.
-
#last_error_date=(last_error_date : Int32 | Nil)
Unix time for the most recent error that happened when trying to deliver an update via webhook.
-
#last_error_message : String | Nil
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 | Nil)
Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook.
-
#last_synchronization_error_date : Int32 | Nil
Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.
-
#last_synchronization_error_date=(last_synchronization_error_date : Int32 | Nil)
Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.
-
#max_connections : Int32 | Nil
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery.
-
#max_connections=(max_connections : Int32 | Nil)
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#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 Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
A list of update types the bot is subscribed to. Defaults to all update types except chat_member.
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.
Unix time for the most recent error that happened when trying to deliver an update via webhook.
Unix time for the most recent error that happened when trying to deliver an update via webhook.
Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook.
Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook.
Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.
Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery.
The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery.