AI Telegram content aggregator (Parser + Moderation)
A comprehensive hybrid system for automatic news collection from Telegram channels, their AI rewriting, and convenient publication through a moderation system.
Technology stack: Python 3.11+, aiogram 3.x, Pyrogram/Telethon (MTProto API), SQLite (aiosqlite), OpenAI / Gemini API.
Key features and architectural solutions:
* Anti-ban Parser: Data collection through an isolated UserBot using secure periodic polling (without event handlers), simulating delays and handling FloodWait.
* Flexible authorization: The parser login is implemented directly in the admin bot interface (via QR code or standard Telegram code).
* Working with MediaGroups: Full support for posts with multiple media files (photos/videos/documents) — local caching and reassembling into one post for publication.
* Strict AI rewriting: Configured strict system prompts (Zero-Hallucination) for accurate rewriting/translation without loss of context and skewed formatting.
* Telegram Admin Panel: All system management (adding channels, moderating publications, changing API keys, prompts, and stop words) is done through the bot's inline menu, without interaction with the server console. The SQLite database allows for "on-the-fly" changes.
#Telegram #python #aiogram3 #gemini #AI
Technology stack: Python 3.11+, aiogram 3.x, Pyrogram/Telethon (MTProto API), SQLite (aiosqlite), OpenAI / Gemini API.
Key features and architectural solutions:
* Anti-ban Parser: Data collection through an isolated UserBot using secure periodic polling (without event handlers), simulating delays and handling FloodWait.
* Flexible authorization: The parser login is implemented directly in the admin bot interface (via QR code or standard Telegram code).
* Working with MediaGroups: Full support for posts with multiple media files (photos/videos/documents) — local caching and reassembling into one post for publication.
* Strict AI rewriting: Configured strict system prompts (Zero-Hallucination) for accurate rewriting/translation without loss of context and skewed formatting.
* Telegram Admin Panel: All system management (adding channels, moderating publications, changing API keys, prompts, and stop words) is done through the bot's inline menu, without interaction with the server console. The SQLite database allows for "on-the-fly" changes.
#Telegram #python #aiogram3 #gemini #AI