A secure modular Telegram AI Operations Assistant built for automation, workflows, cloud storage search, reminders, AI chat, and system operations.
- Conversational AI chat
- Workflow-based task execution
- Automatic tool routing
- English โ Burmese language support
- Context memory
- Multi-step AI workflows
- Telegram bot interface
- AI chat mode
- Interactive command system
- Middleware authentication
- Inline callback menus
- Create reminders
- Delete reminders
- List scheduled events
- Persistent scheduler restoration
- APScheduler integration
- AI-powered web search
- Search summarization
- Internet query workflows
- Serper API integration
- Rclone metadata indexing
- Cloud file search
- Multi-remote support
- Unread email summaries
- Inbox integrations
- AI email summarization
- Default-deny access model
- Role-based access control
- Middleware validation
- Audit logging
- Admin-only operations
TeleOps-AI
โ
โโโ app/
โ โโโ ai/
โ โโโ core/
โ โโโ database/
โ โโโ interfaces/
โ โโโ plugins/
โ โโโ services/
โ โโโ utils/
โ
โโโ data/
โโโ logs/
โโโ main.py
โโโ requirements.txt
- Python 3.10+
- Ubuntu / Debian recommended
- 1GB RAM minimum
- Linux VPS recommended
git clone https://github.com/yourusername/TeleOps-AI.git
cd TeleOps-AIpython3 -m venv venvActivate:
source venv/bin/activatepip install -r requirements.txt/base.txtCreate .env
# =====================================================
# TELEGRAM
# =====================================================
TELEGRAM_BOT_TOKEN=
# =====================================================
# AI PROVIDER
# =====================================================
AI_PROVIDER=groq
GROQ_API_KEY=
GROQ_MODEL=qwen/qwen3-32b
# =====================================================
# WEATHER
# =====================================================
OPENWEATHER_API_KEY=
# =====================================================
# WEB SEARCH
# =====================================================
SERPER_API_KEY=
# =====================================================
# DATABASE
# =====================================================
DATABASE_PATH=data/teleops.db
# =====================================================
# SYSTEM
# =====================================================
TIMEZONE=Asia/Bangkokpython main.py| Command | Description |
|---|---|
/ai |
Enable AI chat mode |
/exitai |
Disable AI chat mode |
/clear |
Clear AI conversation memory |
| Command | Description |
|---|---|
/calendar |
Open calendar menu |
- Add reminders
- List reminders
- Delete reminders
- Persistent scheduler jobs
weather in tokyo
แแแบแแฏแแบแแฌแแฎแฅแแฏ
latest AI news
YGN to BKK flight schedule
find backup.zip
check unread emails
SQLite database location:
data/teleops.db
Core tables:
- users
- roles
- reminders
- audit_logs
- inboxes
- user_inboxes
- chat_memory
Plugins are loaded dynamically from:
app/plugins/
Example plugins:
weather/
websearch/
Each plugin exposes async tool functions used by the AI workflow router.
Recommended for lightweight VPS deployment.
Recommended models:
qwen/qwen3-32b
deepseek-r1-distill-llama-70b
Supported but quota-limited on free tier.
Recommended models:
gemini-2.0-flash
gemini-2.0-flash-lite
- Oracle Cloud Free Tier
- Hetzner
- Contabo
- DigitalOcean
Ubuntu 22.04
Python 3.10+
Systemd
Nginx (optional)
Example service:
[Unit]
Description=TeleOps-AI
After=network.target
[Service]
User=ubuntu
WorkingDirectory=/home/ubuntu/TeleOps
ExecStart=/home/ubuntu/TeleOps/venv/bin/python main.py
Restart=always
[Install]
WantedBy=multi-user.targetsudo systemctl daemon-reload
sudo systemctl enable teleops
sudo systemctl start teleopsjournalctl -u teleops -f- Never expose
.env - Protect API keys
- Restrict Telegram access
- Use firewall rules
- Rotate secrets regularly
Verify:
python main.pyCheck:
- TELEGRAM_BOT_TOKEN
- Middleware authentication
- Handler registration
Check:
- API keys
- Model names
- Provider quotas
Reset database:
rm -f data/teleops.dbRestart:
python main.py- Gmail OAuth integration
- Shared inbox support
- Voice commands
- Docker deployment
- Web dashboard
- Multi-user RBAC
- Vector memory
- Multi-agent workflows
MIT License
This project is intended for educational, automation, and personal operational use.
Users are responsible for:
- API usage
- Infrastructure security
- Credential management
- Compliance with platform policies