class Telegram::API::WebhookInfo

Overview

Contains information about the current status of a webhook.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

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

def self.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) #

[View source]
def self.new(pull : JSON::PullParser) #

Contains information about the current status of a webhook.


[View source]

Instance Method Detail

def allowed_updates : Array(String) #

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


[View source]
def allowed_updates=(allowed_updates : Array(String)) #

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


[View source]
def has_custom_certificate : Bool #

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


[View source]
def has_custom_certificate=(has_custom_certificate : Bool) #

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


[View source]
def ip_address : String | Nil #

Optional. Currently used webhook IP address


[View source]
def ip_address=(ip_address : String | Nil) #

Optional. Currently used webhook IP address


[View source]
def last_error_date : Int32 | Nil #

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


[View source]
def last_error_date=(last_error_date : Int32 | Nil) #

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


[View source]
def last_error_message : String | Nil #

Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook


[View source]
def last_error_message=(last_error_message : String | Nil) #

Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook


[View source]
def max_connections : Int32 | Nil #

Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery


[View source]
def max_connections=(max_connections : Int32 | Nil) #

Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery


[View source]
def pending_update_count : Int32 #

Number of updates awaiting delivery


[View source]
def pending_update_count=(pending_update_count : Int32) #

Number of updates awaiting delivery


[View source]
def url : String #

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


[View source]
def url=(url : String) #

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


[View source]