Thriving Thriving Python PY
โ†‘ 32
lex-tg sudo-py-dev/lex-tg

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.

HEALTH 66 / Stable
high-performancemtprotopyrogram-bottelegram-bot-ai-assistant

// momentum

tracking since W47

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

Read the full README on GitHub โ†—

Health score

Is the project alive and maintained right now? A 0โ€“100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.

How it's calculated

Undervalued score

Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity โ€” divided by a logarithmic reach factor.

How it's calculated

Tags

Tags are independent behavioral signals computed nightly. A project can hold multiple at once. They drive the home page sections.

How it's calculated