Telegram setup
Connect a Telegram bot so approved users can DM your project's agents.
Use cases#
- Lightweight mobile access to ops agents — no Meta or Azure setup
- Developer and on-call bots for quick status checks
- Regional teams where Telegram is the primary messenger
Prerequisites#
- Telegram account and access to @BotFather
- HTTP API bot token from /newbot
- At least one deployed agent in your ViksaAI project
Installation steps#
- 1
Create a bot with BotFather
In Telegram, message @BotFather, send
/newbot, and copy the HTTP API token (123456789:ABC…). - 2
Connect in Channel Hub
Volt → Channel Hub → Telegram. Paste the bot token. Click Validate (calls
getMe) then Connect. - 3
Webhook (automatic)
On Connect, Viksa registers a secure webhook with Telegram. Your project URL:
https://api.viksaai.com/v1/webhooks/telegram/{tenant_key}Viksa sets a secret token and validates
X-Telegram-Bot-Api-Secret-Tokenon every request. - 4
Grant access
Use Allow all users (*) or per-user grants with the numeric Telegram user ID (not @username). Message @userinfobot on Telegram to look up your ID.
- 5
Test
Send a plain text DM (e.g. "hello"). Commands like
/startare ignored during the pilot — use normal text.
Credentials reference#
| Field | Required | Notes |
|---|---|---|
| Bot token | Yes | From @BotFather — only credential needed |
Message flow#
- User sends a message on the channel.
- The platform posts a webhook to volt-engine-service at /v1/webhooks/*.
- Engine resolves account, org, and project from the global routing index (App ID, phone number ID, tenant key, etc.).
- Access is checked via channel_grants_v1 and optional Viksa project membership.
- The same Think→Act→Observe pipeline loads your project agent catalog and runs agents.
- The reply is sent back through the channel API (Graph, Telegram Bot API, Bot Framework, etc.).
Troubleshooting#
More help: Troubleshooting.