Telegram
Deploy your Hybrix agents as Telegram bots. Supports private chats, group conversations, inline keyboards, and media attachments.
1. Create a Telegram bot
- Open Telegram and message
@BotFather - Send
/newbotand follow the prompts to name your bot - Copy the HTTP API token that BotFather provides
- Add the token to your
.envfile
env
TELEGRAM_BOT_TOKEN=7123456789:AAH...2. Configure the channel
json
{
"channels": [
{
"type": "telegram",
"token": "$TELEGRAM_BOT_TOKEN",
"agents": ["Atlas"],
"allowGroups": true,
"parseMode": "Markdown",
"webhookMode": true
}
]
}| Option | Default | Description |
|---|---|---|
| allowGroups | true | Respond in group chats (not just DMs) |
| parseMode | Markdown | Message formatting: Markdown or HTML |
| webhookMode | true | Use webhooks (recommended) vs. long polling |
| commands | [] | Register custom bot commands with Telegram |
Supported features
Inline keyboards — Agents can present interactive button menus for confirmations, selections, and navigation.
Media handling — Receive and send photos, documents, voice messages, and videos.
Group mode — In groups, the bot responds only when mentioned by name or via /command.
Bot commands — Register custom commands that appear in Telegram's command menu.
For local development, Hybrix automatically falls back to long polling mode, so you don't need a public URL. Webhook mode is only required in production.