Skip to main content

Overview

The Telegram channel lets you interact with FERAL through direct messages or group chats. Messages are relayed to the brain over WebSocket — FERAL responds with text, SDUI cards, or voice notes depending on context.

Setup

1

Create a bot with BotFather

Open Telegram and message @BotFather:
Follow the prompts to name your bot. BotFather returns a token like:
Copy this token — you’ll need it in the next step.
2

Set the bot token

Prefer the environment variable or credential vault over putting the token directly in settings.json.
3

Configure bot settings (optional)

Customize behavior in settings.json:
4

Restart FERAL

5

Test the connection

Open Telegram and send a DM to your bot:
You should see a response within a few seconds. Check the REPL or dashboard for the relayed message.

Group Chat Usage

When allow_groups is true, add the bot to any Telegram group. By default, the bot only responds when mentioned:
To let the bot read all group messages (for proactive suggestions), disable privacy mode via BotFather: /setprivacy → Disable.

Supported Message Types

Troubleshooting

Run feral status and verify the Telegram channel shows as connected. Check that FERAL_TELEGRAM_BOT_TOKEN is set and valid.
Ensure allow_groups is true and the bot’s privacy mode is disabled in BotFather.
If allowed_user_ids is set, only listed IDs can interact. Find your Telegram user ID by messaging @userinfobot.