A high-performance, modular Telegram management system built with Pyrogram and SQLAlchemy 2.0. Features deep localization (20+ languages), AI integration (Gemini/OpenAI), and a custom caching layer for maximum speed and reliability.
// momentum
// why it's here
- Active: last commit today
// how to help
// readme
Lex-TG
Lex-TG is a Telegram bot for moderating groups and automating channel posts. Admins can configure it from a private settings panel inside Telegram.
ืขืืจืืช ยท Quick start ยท Deployment ยท Development
What it does
- Moderation โ Manage bans, mutes, warnings, and bulk message cleanup.
- Group protection โ Configure anti-flood and anti-raid rules, CAPTCHA, filters, and blacklists.
- Group automation โ Set welcome messages, rules, reminders, and scheduled chat locks.
- Channel automation โ Add reactions, signatures, links, and watermarks to posts.
- AI tools โ Configure the optional AI assistant and content guard from the admin panel.
Quick start
Youโll need Python 3.12 or newer, uv, a bot token from BotFather, and an API ID and hash from my.telegram.org.
From the repository root, install dependencies and create a local configuration. If you already have a .env, keep it and edit it in place.
uv sync
test -f .env || cp .env.example .env
mkdir -p data sessions logs
Set these values in .env.