Requirements & Constraints
- Compatibility: AnythingLLM
>v1.11.2(Docker, Desktop Mac/Windows/Linux). - Network: The AnythingLLM instance must be running and online for the bot to function.
- Access Mode: Single-user mode (or single-user with password protection) only. Enabling multi-user mode automatically disconnects the bot.
- Capacity: Limit of one Telegram bot per AnythingLLM instance.
Setup & Configuration
Step 1: Create Telegram Bot via BotFather
- Open @BotFather in Telegram.
- Send command:
/newbot - Define the bot display name and username.
- Copy the generated API token.
Step 2: Configure Bot Father Security Settings (Recommended)
Within @BotFather, apply the following settings to your bot:
- Disable group joins.
- Disable inline mode.
- Use a non-obvious username.
Step 3: Connect to AnythingLLM
- Navigate to Settings > Channels > Telegram in the AnythingLLM UI.
- Paste the Telegram API token.
- Click Connect Bot.
Step 4: Authorize Users
- Have the user message the Telegram bot to generate a pairing code.
- Navigate to Settings > Channels > Telegram > Users in AnythingLLM.
- Verify the pairing code matches the userβs code.
- Click the check mark to authorize access.
Operations & Commands
Inline Bot Capabilities
- Text Chat: Uses the active workspace LLM.
- Image Input: Supported via vision-capable LLMs.
- Voice Input: Auto-transcribes and processes voice messages.
- Agent Execution: Supports
@agentcommands, tool calling, and PNG chart rendering.
Bot Commands
| Command | Description |
|---|---|
/start | Display welcome message and active workspace metadata |
/switch | Toggle active workspace or thread |
/new | Create a new thread in the active workspace |
/history [count] | Retrieve recent messages (Default: 10, Max: 50) |
/status | Query active workspace, thread, provider, and model configurations |
/reset | Clear conversation history context |
/proof | Output document source citations for the last response |
/model | Hot-swap active LLM model |
/help | List available commands |