AIKM
Watches source channels and RSS feeds, filters out ads and duplicates, rewrites posts with a language model and publishes them on schedule. Everything is managed from a Telegram admin bot.
- Type
- Prototype / MVP
- Year
- 2025–2026
- Status
- Completed
- Source
- Private repository
How data moves through it
- Telegram and RSS
- Duplicate and ad filter
- Importance score
- LLM rewrite
- Schedule
- Publish
The problem
Running a news channel means reading dozens of sources, skipping ads and repeats, and rewriting the rest in your own voice. AIKM automates that routine while the owner keeps control over sources, rules and style.
What I built
- An admin bot for channels, sources, rubrics, stop words and publishing settings, with multi-step inline menus.
- A Telethon channel manager that monitors sources asynchronously and saves text and media.
- Duplicate detection over the last 24 hours by text and by media similarity, plus ad filtering and importance scoring with a language model.
- Rewriting with OpenAI and Claude through LangChain, guided by formatting examples stored as vectors in pgvector and Pinecone.
- WayForPay subscriptions, and a Radar module that classifies and delivers air-raid alert notifications.
- Separate Docker services for the bot, the content manager, the alert manager and the database, sharing one PostgreSQL.
Architecture
Three independent services that never call each other directly. They share state through PostgreSQL, so the bot, the content pipeline and the alert service can be restarted or scaled on their own.
Result
A working prototype with three services running in Docker.