class

Tourmaline::BusinessConnection

Inherits JSON::Serializable < Reference < Object

Describes the connection of the bot with a business account.

Constructors

new(id : String, user : Tourmaline::User, user_chat_id : Int32 | Int64, date : Time, is_enabled : Bool, rights : Tourmaline::BusinessBotRights | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

date

Date the connection was established in Unix time

Source
date=(date : Time)

Date the connection was established in Unix time

Source
id

Unique identifier of the business connection

Source
id=(id : String)

Unique identifier of the business connection

Source
is_enabled=(is_enabled : Bool)

True, if the connection is active

Source
is_enabled?

True, if the connection is active

Source
rights

Optional. Rights of the business bot

Source
rights=(rights : Tourmaline::BusinessBotRights | Nil)

Optional. Rights of the business bot

Source
user

Business account user that created the business connection

Source
user=(user : Tourmaline::User)

Business account user that created the business connection

Source
user_chat_id

Identifier of a private chat with the user who created the business connection. 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 64-bit integer or double-precision float type are safe for storing this identifier.

Source
user_chat_id=(user_chat_id : Int32 | Int64)

Identifier of a private chat with the user who created the business connection. 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 64-bit integer or double-precision float type are safe for storing this identifier.

Source