WriteAccessAllowed
This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a W
This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
from_request | Boolean | Optional | True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess |
web_app_name | String | Optional | Name of the Web App, if the access was granted when the Web App was launched from a link |
from_attachment_menu | Boolean | Optional | True, if the access was granted when the bot was added to the attachment or side menu |
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.