Skip to main content

Overview

Vertra Cloud is ideal for hosting Telegram bots, offering continuous uptime with auto-restart and real-time log monitoring.
When creating the application for a bot, select the Bot type (not Website). Bots don’t need exposed HTTP port.

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

  1. For Node.js: Exclude node_modules from the project
  2. For Python: Exclude venv and __pycache__
  3. Compress into a ZIP file
  4. Access Dashboard → New Project → Application
  5. Select language (Node.js or Python)
  6. Upload the file
  7. In the wizard, select type: Bot (not Website)
  8. Configure memory (256MB for simple bots)
  9. 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_TOKEN in 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) or logging (Python) to monitor in real-time
  • Polling: Both libraries use polling, which is simpler but uses more resources than webhooks