
- Responds to messages in Telegram groups and direct messages
- Processes questions using the same agent as the web chat interface
- Returns answers with SQL queries, data tables, and visualizations
- Maintains conversation context within reply threads
The Telegram bot uses the same agent context, rules, and capabilities as your
web chat interface. Any improvements to your agent automatically benefit
Telegram users.
Setup
Step 1: Create a Telegram Bot
- Open Telegram and search for @BotFather
- Send
/newbot - Follow the prompts to choose a name and username for your bot
- BotFather will send you a Bot Token — copy it
Step 2: Connect your Telegram Bot to nao
- In nao, click on your profile → “Project” → “Telegram”
- Paste the Bot Token from BotFather
- Click “Save”
- Open a chat with your bot in Telegram and send
/login <linking_code>— you can find your Linking Code in the project settings page
Step 3: Configure Bot for Groups
If you want the bot to respond in group chats, you need to enable group access and disable privacy mode in BotFather:- Open @BotFather in Telegram
- Send
/mybotsand select your bot - Go to “Bot Settings”
- Click “Allow Groups” — make sure it is turned on
- Click “Group Privacy” — set it to disabled so the bot can read all messages in the group
Step 4: Add Bot to Groups
- Open the Telegram group where you want the bot
- Click “Add Members”
- Search for your bot’s username and add it
- The bot will now respond to messages in that group
Usage
Ask Questions Mention the bot in any group where it’s been added:- Process your question using the same agent as the web interface
- Generate SQL queries based on your context
- Execute queries against your connected databases
- Return results in a formatted Telegram message
- Send you the link to the full conversation to open it in the browser UI
The bot replies in threads to keep conversations organized. Use replies for
follow-ups.
Chat Overview
Learn about the web chat interface
Self-Hosting Guide
Deploy nao with Docker or on your own Cloud Run instance