Actions32
- Bot Actions
- Callback Actions
- Chat Actions
- File Actions
- Message Actions
- Payment Actions
- Sticker Actions
Overview
The "Close" operation of the "Bot" resource in this node allows users to close the bot instance on the Bale Messenger platform. This is useful when you want to shut down the bot's connection to the cloud Bot API server, for example, before moving the bot from one local server to another or performing maintenance. Closing the bot ensures that the bot instance is properly terminated and can be restarted cleanly elsewhere.
Practical scenarios include:
- Migrating a bot to a different hosting environment.
- Temporarily disabling the bot without deleting it.
- Ensuring no active sessions remain before redeploying updates.
Properties
| Name | Meaning |
|---|---|
| (No specific input properties for Close operation) | The "Close" operation does not require additional input properties beyond standard credentials. |
Note: The "Close" operation under the "Bot" resource does not use any custom input parameters besides the required API authentication credential.
Output
The output JSON contains a single field indicating the result of the close operation:
closed: A boolean or status object indicating whether the bot instance was successfully closed.
Example output JSON:
{
"closed": true
}
There is no binary data output for this operation.
Dependencies
- Requires an API authentication token credential for Bale Messenger.
- Uses the Bale Messenger Bot API endpoint at
https://tapi.bale.ai/bot. - Relies on the official Node Telegram Bot API client configured for Bale Messenger.
Troubleshooting
Common issues:
- Invalid or expired API token may cause failure to close the bot.
- Network connectivity problems to the Bale Messenger API endpoint.
- Attempting to close a bot instance that is not currently active.
Error messages:
- Errors returned by the API will typically indicate authorization failures or invalid requests.
- If the node throws an error related to closing, verify the API token and network access.
Resolution:
- Ensure the API key credential is valid and has sufficient permissions.
- Check internet connectivity and firewall settings.
- Confirm the bot instance is active before attempting to close.
Links and References
- Bale Messenger Bot API Documentation
- Node Telegram Bot API GitHub Repository (used as underlying client library)