class
Tourmaline::BusinessConnection
- Tourmaline::BusinessConnection
- Reference
- Object
Overview
Describes the connection of the bot with a business account.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(id : String, user : Tourmaline::User, user_chat_id : Int32 | Int64, date : Time, is_enabled : Bool, rights : Tourmaline::BusinessBotRights | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#date : Time
Date the connection was established in Unix time
-
#date=(date : Time)
Date the connection was established in Unix time
-
#id : String
Unique identifier of the business connection
-
#id=(id : String)
Unique identifier of the business connection
-
#is_enabled=(is_enabled : Bool)
True, if the connection is active
-
#is_enabled? : Bool
True, if the connection is active
-
#rights : Tourmaline::BusinessBotRights | Nil
Optional.
-
#rights=(rights : Tourmaline::BusinessBotRights | Nil)
Optional.
-
#user : Tourmaline::User
Business account user that created the business connection
-
#user=(user : Tourmaline::User)
Business account user that created the business connection
-
#user_chat_id : Int32 | Int64
Identifier of a private chat with the user who created the business connection.
-
#user_chat_id=(user_chat_id : Int32 | Int64)
Identifier of a private chat with the user who created the business connection.
Constructor Detail
Instance Method Detail
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.
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.