class Tourmaline::ResponseParameters

Overview

Describes why a request was unsuccessful.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(migrate_to_chat_id : Int32 | Int64 | Nil = nil, retry_after : Int32 | Int64 | Nil = nil) #

[View source]

Instance Method Detail

def migrate_to_chat_id : Int32 | Int64 | Nil #

Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.


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

Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.


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

Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated


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

Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated


[View source]