class Tourmaline::WebhookInfo

Overview

Describes the current status of a webhook.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

[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=(has_custom_certificate : Bool) #

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


[View source]
def 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 : Time | Nil #

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

[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 last_synchronization_error_date : Time | Nil #

[View source]
def last_synchronization_error_date=(last_synchronization_error_date : Time | Nil) #

[View source]
def max_connections : Int32 | Int64 | Nil #

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


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

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


[View source]
def pending_update_count : Int32 | Int64 #

Number of updates awaiting delivery


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

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]