Overview
Vertra Cloud is ideal for hosting Telegram bots, offering continuous uptime with auto-restart and real-time log monitoring.Node.js with node-telegram-bot-api
Structure
package.json
vertracloud.config
Example (Node.js)
Python with python-telegram-bot
Structure
requirements.txt
vertracloud.config
Example (Python)
Deploy
- Via Dashboard
- Via GitHub
- Via VSCode
- For Node.js: Exclude
node_modulesfrom the project - For Python: Exclude
venvand__pycache__ - Compress into a ZIP file
- Access Dashboard → New Project → Application
- Select language (Node.js or Python)
- Upload the file
- In the wizard, select type: Bot (not Website)
- Configure memory (256MB for simple bots)
- Click “Create Application”
Environment Variables Configuration
1
Get bot token
Talk to @BotFather on Telegram to create a new bot and get the
BOT_TOKEN.2
Configure in dashboard
After creating the application, add the environment variable:
- Name:
BOT_TOKEN - Value: (your @BotFather token)
3
Check logs
Monitor the logs after deployment to confirm the bot is online and connected.
Available Versions
Node.js
Python
Notes
- Bot Type: Always select Bot when creating the application (not Website)
- Environment variables: Configure
BOT_TOKENin the application’s variables - Auto-restart: Essential to keep the bot online in case of disconnection
- Memory: 256MB is enough for simple bots, 512MB+ for complex ones
- Logs: Use
console.log()(JS) orlogging(Python) to monitor in real-time - Polling: Both libraries use polling, which is simpler but uses more resources than webhooks