Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

245 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TeleOps-AI ๐Ÿค–

A secure modular Telegram AI Operations Assistant built for automation, workflows, cloud storage search, reminders, AI chat, and system operations.


โœจ Features

๐Ÿค– AI Assistant

  • Conversational AI chat
  • Workflow-based task execution
  • Automatic tool routing
  • English โ†” Burmese language support
  • Context memory
  • Multi-step AI workflows

๐Ÿ“ฑ Telegram Integration

  • Telegram bot interface
  • AI chat mode
  • Interactive command system
  • Middleware authentication
  • Inline callback menus

๐Ÿ“… Reminder & Calendar System

  • Create reminders
  • Delete reminders
  • List scheduled events
  • Persistent scheduler restoration
  • APScheduler integration

๐ŸŒ Web Search

  • AI-powered web search
  • Search summarization
  • Internet query workflows
  • Serper API integration

โ˜๏ธ Cloud Storage Search

  • Rclone metadata indexing
  • Cloud file search
  • Multi-remote support

๐Ÿ“ง Email Assistant

  • Unread email summaries
  • Inbox integrations
  • AI email summarization

๐Ÿ” Security

  • Default-deny access model
  • Role-based access control
  • Middleware validation
  • Audit logging
  • Admin-only operations

๐Ÿ— Architecture

TeleOps-AI
โ”‚
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ ai/
โ”‚   โ”œโ”€โ”€ core/
โ”‚   โ”œโ”€โ”€ database/
โ”‚   โ”œโ”€โ”€ interfaces/
โ”‚   โ”œโ”€โ”€ plugins/
โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ””โ”€โ”€ utils/
โ”‚
โ”œโ”€โ”€ data/
โ”œโ”€โ”€ logs/
โ”œโ”€โ”€ main.py
โ””โ”€โ”€ requirements.txt

โš™๏ธ Requirements

System Requirements

  • Python 3.10+
  • Ubuntu / Debian recommended
  • 1GB RAM minimum
  • Linux VPS recommended

๐Ÿš€ Installation

Clone Repository

git clone https://github.com/yourusername/TeleOps-AI.git

cd TeleOps-AI

Create Virtual Environment

python3 -m venv venv

Activate:

source venv/bin/activate

Install Dependencies

pip install -r requirements.txt/base.txt

๐Ÿ”ง Environment Configuration

Create .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/Bangkok

โ–ถ๏ธ Running the Project

python main.py

๐Ÿ“– Telegram Commands

๐Ÿค– AI Commands

Command Description
/ai Enable AI chat mode
/exitai Disable AI chat mode
/clear Clear AI conversation memory

๐Ÿ“… Calendar Commands

Command Description
/calendar Open calendar menu

Calendar Features

  • Add reminders
  • List reminders
  • Delete reminders
  • Persistent scheduler jobs

๐Ÿ’ฌ AI Chat Examples

๐ŸŒฆ Weather

weather in tokyo
แ€›แ€”แ€บแ€€แ€ฏแ€”แ€บแ€›แ€ฌแ€žแ€ฎแ€ฅแ€แ€ฏ

๐ŸŒ Web Search

latest AI news
YGN to BKK flight schedule

โ˜๏ธ Cloud Storage Search

find backup.zip

๐Ÿ“ง Email Summary

check unread emails

๐Ÿ—„ Database

SQLite database location:

data/teleops.db

Core tables:

  • users
  • roles
  • reminders
  • audit_logs
  • inboxes
  • user_inboxes
  • chat_memory

๐Ÿงฉ Plugin System

Plugins are loaded dynamically from:

app/plugins/

Example plugins:

weather/
websearch/

Each plugin exposes async tool functions used by the AI workflow router.


๐Ÿง  Supported AI Providers

โšก Groq

Recommended for lightweight VPS deployment.

Recommended models:

qwen/qwen3-32b
deepseek-r1-distill-llama-70b

๐Ÿ”ท Gemini

Supported but quota-limited on free tier.

Recommended models:

gemini-2.0-flash
gemini-2.0-flash-lite

๐Ÿ–ฅ Recommended VPS Providers

  • Oracle Cloud Free Tier
  • Hetzner
  • Contabo
  • DigitalOcean

๐Ÿ›  Recommended Stack

Ubuntu 22.04
Python 3.10+
Systemd
Nginx (optional)

๐Ÿšข Deployment

Run with Systemd

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.target

Enable Service

sudo systemctl daemon-reload

sudo systemctl enable teleops

sudo systemctl start teleops

๐Ÿ“œ Check Logs

journalctl -u teleops -f

๐Ÿ” Security Notes

  • Never expose .env
  • Protect API keys
  • Restrict Telegram access
  • Use firewall rules
  • Rotate secrets regularly

๐Ÿงฏ Troubleshooting

Telegram Bot Not Responding

Verify:

python main.py

Check:

  • TELEGRAM_BOT_TOKEN
  • Middleware authentication
  • Handler registration

AI Provider Errors

Check:

  • API keys
  • Model names
  • Provider quotas

Database Errors

Reset database:

rm -f data/teleops.db

Restart:

python main.py

๐Ÿ›ฃ Future Roadmap

  • Gmail OAuth integration
  • Shared inbox support
  • Voice commands
  • Docker deployment
  • Web dashboard
  • Multi-user RBAC
  • Vector memory
  • Multi-agent workflows

๐Ÿ“„ License

MIT License


โš ๏ธ Disclaimer

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages