Telegram Setup Guide for ravenbot
This guide explains how to set up the Telegram integration for ravenbot. To use ravenbot with Telegram, you need to create a bot via BotFather and configure the necessary environment variables.
1. Create a New Bot
- Open Telegram and search for @BotFather.
- Start a chat with BotFather and send the command
/newbot. - Follow the prompts:
- Name: Choose a display name for your bot (e.g., "ravenbot").
- Username: Choose a unique username ending in
bot(e.g.,Myravenbot).
- Once created, BotFather will send you a message with your HTTP API Token.
2. Configure the Bot Token
Copy the token provided by BotFather and add it to your .env file as TELEGRAM_BOT_TOKEN.
3. Get Your Chat ID
ravenbot requires a specific Chat ID to send messages to (and to accept commands from). This ensures the bot doesn't respond to unauthorized users.
- Open a chat with your new bot in Telegram (search for its username).
- Send a message (e.g., "Hello") to the bot.
-
Visit the following URL in your browser (replace
<YOUR_BOT_TOKEN>with your actual token): -
Look for the JSON response. Find the
chatobject inside theresultarray. -
Copy the
idvalue. It is usually a large integer (positive for private chats, negative for groups).- Example:
"chat":{"id": 123456789, ...}
- Example:
-
Add this ID to your
.envfile asTELEGRAM_CHAT_ID.
4. Final Configuration
Ensure your .env file has both variables set:
Once configured, restart ravenbot. The bot will send daily briefings to this chat and accept commands from it.
Available commands: /research, /status, /remind, /watch, /jules, /uptime, /export, /reset, /help
Web UI
The web interface is also available at http://localhost:8080 — no additional setup required. It provides the same chat functionality plus research reports browsing, agent management, and a missions dashboard.