Telegram Setup¶
Connect your Vandelay agent to Telegram so you can chat from your phone.
Step 1: Create a Bot¶
- Open Telegram and message @BotFather
- Send
/newbot - Choose a name and username for your bot
- Copy the bot token BotFather gives you
Step 2: Configure Vandelay¶
Or add to ~/.vandelay/.env:
And in config.json:
Step 3: Get Your Chat ID¶
To lock the bot to your chat only (recommended for security):
- Start a conversation with your bot and send any message
- Open this URL in your browser (replace with your token):
- Find your chat ID in the response:
- Add it to
~/.vandelay/.env:
Step 4: Start the Server¶
The Telegram webhook is automatically registered when the server starts.
Features¶
- Persistent typing: The bot shows "typing..." while processing (re-sent every 4s)
- File sending: The agent can send files via Telegram using
send_file() - Chat lock: Set
telegram_chat_idto restrict access to your chat only - Shared memory: Conversations in Telegram share memory with Terminal and other channels
Troubleshooting¶
- Bot not responding: Check that
telegram_enabledistrueand the token is correct - Webhook errors: Ensure your server is publicly accessible (use a reverse proxy or tunnel)
- "Chat not allowed": Verify your
telegram_chat_idmatches the chat you're messaging from