BusinessConnection

Raw MD
Describes the connection of the bot with a business account

Describes the connection of the bot with a business account.

Fields

FieldTypeRequiredDescription
idStringAlwaysUnique identifier of the business connection
userUserAlwaysBusiness account user that created the business connection
user_chat_idIntegerAlwaysIdentifier 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.
dateIntegerAlwaysDate the connection was established in Unix time
rightsBusinessBotRightsOptionalRights of the business bot
is_enabledBooleanAlwaysTrue, if the connection is active
Botlify Cloud Runtime
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.