Overview
Features
| Feature | Status |
|---|---|
| Send messages | ✅ |
| Receive messages | ✅ |
| Inline queries | ✅ |
| File attachments | ✅ |
| Voice messages | ✅ |
| Group chats | ✅ |
| Thread support | ✅ |
Quick Setup
Create a Telegram Bot
- Open Telegram and search for @BotFather
- Send
/newbot - Follow the prompts:
- Bot name:
AeonSage(or your preferred name) - Bot username: Must end with
_bot(e.g.,my_aeon_bot)
- Bot name:
- Copy the bot token (format:
123456789:ABCdefGhIjKlMnoPqRsTuVwXyZ)
Configuration
Full Configuration Reference
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
token | string | required | Bot token from BotFather |
allowedUsers | array | [] | Whitelisted user IDs (empty = all allowed) |
allowedGroups | array | [] | Whitelisted group IDs |
commands.enabled | boolean | true | Enable slash commands |
commands.prefix | string | ”/“ | Command prefix |
features.voice | boolean | true | Process voice messages |
features.files | boolean | true | Process file attachments |
rateLimit.max | number | 30 | Max messages per minute |
Usage
Direct Messages
Send any message to your bot:Slash Commands
| Command | Description |
|---|---|
/start | Start the bot and authenticate |
/help | Show available commands |
/reset | Reset conversation context |
/model [name] | Switch AI model |
/status | Show session status |
Voice Messages
Voice messages are automatically transcribed using Whisper (if enabled) and processed as text.
Group Chats
To use in groups:- Add bot to group
- Configure group permissions:
- Mention the bot to trigger responses:
In groups, the bot only responds when mentioned. Set group privacy to “Disabled” in BotFather to allow the bot to see all messages.
Security
Access Control
Webhook vs Polling
- Webhook (Recommended)
- Long Polling
More efficient for production. Requires HTTPS.
Troubleshooting
Advanced
Custom Commands
Define custom commands:Inline Mode
Enable inline queries:- Enable inline mode in @BotFather:
- Configure in AeonSage: