Telegram Integration Setup
This guide is for self-hosted deployments that want to enable Telegram chat with the Inbox Zero assistant.What Telegram currently supports
- AI assistant chat in direct messages with the Inbox Zero bot
- Account linking with one-time
/connect <code>commands
- Channel/group-based meeting brief delivery
- Channel/group-based attachment filing notifications
1. Create a Telegram bot with BotFather
- Open Telegram and start a chat with @BotFather
- Send
/newbot - Choose a display name and bot username (must end with
bot) - Copy the bot token BotFather returns — this is your
TELEGRAM_BOT_TOKEN
2. Configure the webhook
Set your bot’s webhook to Inbox Zero:secret_token from the command.
You can verify webhook status with:
3. Set environment variables
Set these inapps/web/.env (or your deployment env):
TELEGRAM_BOT_TOKEN is missing, the Telegram connect option is hidden in the UI and /api/telegram/events returns 503.
If TELEGRAM_BOT_SECRET_TOKEN is set, webhooks must include x-telegram-bot-api-secret-token with the same value or requests are rejected.
4. Connect a user account from Inbox Zero
Each Inbox Zero email account links to a Telegram user via a connect code:- In Inbox Zero, go to Settings → Connected Apps
- Click Connect Telegram
- Copy the generated command:
/connect <code> - Open a direct message with your bot in Telegram
- Send the command
5. Validate end-to-end
Quick checks:POST /api/telegram/eventsreturns200for valid Telegram updates- Sending
/connect <code>in bot DM links the account - A normal DM message gets an assistant response
localhost is not reachable from Telegram.