Skip to content

class Tourmaline::BusinessConnection
inherits Reference #

Describes the connection of the bot with a business account.

Included modules

JSON::Serializable

Constructors#

.new(id, user, user_chat_id, date, can_reply, is_enabled) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#can_reply=(can_reply : Bool) #

True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours

View source

#can_reply? : Bool #

True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours

View source

#date : Time #

View source

#date=(date : Time) #

View source

#id : String #

Unique identifier of the business connection

View source

#id=(id : String) #

Unique identifier of the business connection

View source

#is_enabled=(is_enabled : Bool) #

True, if the connection is active

View source

#is_enabled? : Bool #

True, if the connection is active

View source

#user : Tourmaline::User #

Business account user that created the business connection

View source

#user=(user : Tourmaline::User) #

Business account user that created the business connection

View source

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

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

View source