BusinessConnection
Describes the connection of the bot with a business account
Describes the connection of the bot with a business account.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | String | Always | Unique identifier of the business connection |
user | User | Always | Business account user that created the business connection |
user_chat_id | Integer | Always | 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. |
date | Integer | Always | Date the connection was established in Unix time |
rights | BusinessBotRights | Optional | Rights of the business bot |
is_enabled | Boolean | Always | True, if the connection is active |
Botlify Cloud Runtime
Credentials are auto-injected in
Credentials are auto-injected in
.env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.