class Hamilton::Types::WebhookInfo

Overview

Describes the current status of a webhook.

Included Modules

Defined in:

types/webhook_info.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def allowed_updates : Array(String) | Nil #

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


def allowed_updates=(allowed_updates : Array(String) | Nil) #

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


def has_custom_certificate : Bool #

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


def has_custom_certificate=(has_custom_certificate : Bool) #

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


def ip_address : String | Nil #

Currently used webhook IP address.


def ip_address=(ip_address : String | Nil) #

Currently used webhook IP address.


def last_error_date : Int32 | Nil #

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


def 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.


def 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.


def 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.


def last_synchronization_error_date : Int32 | Nil #

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


def 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.


def max_connections : Int32 | Nil #

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


def max_connections=(max_connections : Int32 | Nil) #

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


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def pending_update_count : Int32 #

Number of updates awaiting delivery.


def pending_update_count=(pending_update_count : Int32) #

Number of updates awaiting delivery.


def url : String #

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


def url=(url : String) #

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