Telegram Channel Aggregator Bot: How to Build One That Scales

Direct answer: A Telegram channel aggregator bot needs two parts: a reader that is subscribed to the source channels (a userbot on MTProto, because a Bot API bot cannot read channels it has not been added to) and a regular bot that posts into one destination chat. To make it scale, add deduplication, per-channel filtering, a queue that respects Telegram’s send limits, and a persisted cursor so restarts do not lose posts. For a personal or niche feed, an off-the-shelf forwarder is enough; build custom when you need dedup, priorities or multiple users.
Last updated: November 2026
Key Takeaways
- A Bot API bot cannot forward posts from channels it is not a member of, so aggregating third-party channels requires a user-account reader on MTProto plus a separate sending bot.
- bot_allert, according to dev.ua, runs with about 100 MB of memory, so the reader-plus-sender pattern does not need expensive hosting.
- Deduplication, per-channel priority and a queue in front of the sender matter more than raw speed once you pass a few dozen sources.
- Persisting the last processed message ID per channel fixes the restart gap that bot_allert lists as a current limitation.
- Use an off-the-shelf forwarder for simple one-to-one forwarding; build custom when you need dedup, scoring, multi-user settings or monetisation.
What bot_allert shows about single-feed Telegram bots
A telegram channel aggregator bot takes many noisy channels and turns them into one feed you can actually trust. That is exactly what Ukrainian backend and AI engineer Vladyslav Skopenko built with bot_allert, an open-source project covered by dev.ua on November 5, 2026.
The problem he describes is familiar to anyone monitoring alerts, news or market signals. He says one person may follow about twenty alarm channels, where some matter and most are noise. Mute them and you miss something important; leave them on and the phone rings constantly.
The same pain exists for crypto signal groups, competitor news, community monitoring and incident channels. If you are thinking of copying the idea, the useful part is not the alert use case. It is the architecture and the constraints behind it.
Can a Telegram bot read channels it is not in?
No. A Bot API bot only sees what Telegram delivers to it, which means channels where it has been added as an admin, plus chats it is a member of. It cannot passively read public channels it has no relationship with.
Skopenko hit this wall directly. As he told dev.ua: the bot cannot forward posts from channels in which it is not present. His solution was two clients. One is logged into the user’s account and only reads posts and settings. The second is a regular bot that sends them.
That split is the standard pattern for any serious aggregator, and it is the first decision you must make.
Bot API vs userbot (MTProto): which should you use?
Use the Bot API for sending and the user-account route (MTProto) for reading. Each has a clear job, and mixing them up is the most common early mistake.
| Approach | Can read channels you do not own? | Best for | Main risk |
|---|---|---|---|
| Bot API bot only | No, only where added as admin or member | Your own channels, delivery to users, commands and buttons | Cannot aggregate third-party sources |
| Userbot via MTProto (for example Telethon, Pyrogram or TDLib) | Yes, anything the account can see | Reading many channels, reading folders and mute settings | Account tied to a real login; automation behaviour must be careful and compliant with Telegram’s terms |
| Hybrid: userbot reads, bot sends | Yes | Aggregators, signal feeds, monitoring dashboards | Two clients to run, secure and monitor |
My verdict: for most aggregators, go hybrid. Keep the userbot strictly read-only, as bot_allert does. The developer stressed it does not publish, does not change read status and does not act on subscriptions. That narrow footprint lowers risk and makes the system easier to explain to users.
Also treat session files like passwords. If you ever run this for other people, you are holding access to their accounts, which is a serious security and trust question. For a multi-user product, read that part of the design twice before you write code.
How do you deduplicate and filter a merged feed?
Deduplicate before you send, never after. Once a duplicate reaches the destination chat, the user has already been interrupted.
With dozens of sources, the same event gets posted by many channels in slightly different words. A workable pipeline looks like this:
- Normalise the text. Lowercase it, strip emojis, links, hashtags and extra whitespace.
- Hash it. Store the hash in Redis with a time-to-live, for example 10 to 60 minutes depending on how fast your topic moves.
- Check forward origins. If a post is a forward, the original source is in the message metadata, so you can drop reposts of something you already delivered.
- Add fuzzy matching. For near-duplicates, use similarity hashing or an embedding comparison. Start without it and add it when exact matching stops being enough.
- Score and filter. Apply keyword rules, per-channel priority and a minimum score before the message reaches the queue.
Filtering should also respect what the user already told Telegram. bot_allert reads the user’s own notification settings: if a channel is muted, its posts arrive silently, and important sources arrive with sound. dev.ua notes that Telegram stores the silent state in three different ways: a flag, a mute end date, or an empty sound. If you mirror user preferences, handle all three.
For smarter classification, such as separating a real signal from chatter, an AI agent layer can score messages. Keep it behind cheap rules so you do not pay for a model call on every post.
What are the rate limits and how should you queue messages?
Put a queue between reading and sending, and send at a pace Telegram accepts. The Bot API limits are well known in practice: roughly one message per second to a single chat, around 30 messages per second across all chats, and tighter limits in groups. If you exceed them, Telegram returns a 429 error with a retry delay, and you must honour it.
A resilient design has four parts:
- Reader process: listens to the userbot, normalises each post and pushes it onto a queue (Redis Streams, RabbitMQ or even a database table at small scale).
- Worker: pulls jobs, runs dedup and filters, and decides priority.
- Sender: the only component that talks to the Bot API, with a token-bucket limiter and retry on 429.
- Cursor store: the last processed message ID per channel, saved after each successful send.
The cursor is not optional. bot_allert lists skipping posts created while the bot restarts as a current limitation. A saved cursor, plus a catch-up read of anything newer on startup, closes that gap. It costs little and removes the failure users notice most.
Two other limitations from the same list are worth designing around from day one: it does not track post edits or deletions, and it forwards albums as separate messages. Decide early whether you need to group media by album ID and whether an edited alert should update the earlier message. If you also rebuild formatted text, remember that Telegram counts text positions in UTF-16 units. The developer found that emojis shifted links and bold ranges until offsets were recalculated.
If you want the broader picture of forwarding patterns, see our guide on auto-forwarding Telegram messages for channels and signals.
What does it take to host it 24/7?
Less than most founders expect, but you need discipline. According to dev.ua, bot_allert needs about 100 MB of memory and runs on Oracle Cloud’s free tier. The developer could not get a free ARM server because of an out-of-capacity error, so he used a micro virtual machine with 1 GB of RAM and added swap so the Docker image could be built.
The lesson is that a reader-plus-sender bot is light. CPU and memory only grow when you add fuzzy matching, media handling or AI scoring. What actually causes outages is the stuff around it:
- Process crashes with no automatic restart (use Docker restart policies or a supervisor).
- Userbot sessions that expire or get logged out with nobody alerted.
- A full disk or a stuck queue.
- No health check that tells you the feed has been silent too long.
That last one is vital for an alert product. A feed that quietly stops looks identical to a quiet day. Add a heartbeat message or an external monitor that pages you when nothing has been processed within a set window. Our guides on bot uptime and hosting and the best Telegram bot hosting platform cover this in more depth.
One more design choice from the news: the project is decentralised, with no central server. Each user runs their own instance for their own account using Docker or Python 3.12+ with uv. That is a smart way to avoid holding other people’s sessions. It also means you cannot build a business on it without changing the model.
Should you build custom or use an off-the-shelf forwarder?
Use an off-the-shelf forwarder if you only need to copy posts from a few channels to one place. Build custom when you need logic the tool does not offer. Here is how I would decide:
| Your need | Off-the-shelf forwarder | Custom aggregator |
|---|---|---|
| Copy a few channels to one chat | Good fit | Overkill |
| Deduplicate cross-posted events | Rarely supported | Good fit |
| Priority tiers, sound or silent delivery | Limited | Good fit |
| Per-user filters and settings | Usually no | Good fit |
| Paid tiers, analytics, API access | No | Required |
| Data ownership and compliance control | Depends on vendor | Full control |
A fair rule: start with a forwarder to prove people want the feed, then build custom when you hit a wall you can name. If you build, expect a small reader, sender and queue to be a modest project, while multi-user accounts, billing and a dashboard are where cost grows. Our breakdown of the cost to hire a Telegram bot developer shows what drives the price.
What should you do first?
Build the smallest version that proves the feed is better than the channels. Follow these steps:
- Define one use case and a list of 10 to 20 sources.
- Run a read-only userbot and a separate sending bot.
- Add exact-match dedup and a per-channel priority.
- Put a queue and rate limiter in front of the sender.
- Persist a cursor per channel and test restarts on purpose.
- Add a heartbeat so silence is visible.
- Only then add fuzzy dedup, AI scoring, albums and edit tracking.
If you plan to expose the feed to many users, put the processing behind a proper service. A backend API keeps user settings, source lists and delivery logs out of the bot process and makes the product far easier to grow.
Frequently Asked Questions
Can a Telegram bot read messages from any public channel?
No. A Bot API bot only receives updates from chats where it has been added, and for channels that usually means being an admin. To read channels you do not control, you need a user-account client on MTProto, typically paired with a regular bot for sending.
Is it safe to use a userbot to aggregate channels?
It is safe only if you keep it read-only, protect the session file like a password and follow Telegram's terms. Avoid actions such as mass joining, posting or changing subscriptions. If you serve other people, avoid holding their sessions on your server.
How do I stop duplicate posts in an aggregated feed?
Normalise each message, hash it and store the hash with a short time-to-live, then drop anything you have already seen. Also check forward origins, and add fuzzy matching later if different channels word the same event differently.
How much server power does a channel aggregator bot need?
Very little for the basic pattern. According to dev.ua, bot_allert needs about 100 MB of memory and runs on a free-tier Oracle Cloud virtual machine. Requirements rise if you add media processing, fuzzy matching or AI scoring.
When is a custom aggregator better than an off-the-shelf forwarder?
Go custom when you need deduplication, priority tiers, per-user filters, paid access or control over data. For simply copying a few channels into one chat, a ready-made forwarder is faster and cheaper.
Sources
- An Odessa developer has created a Telegram bot that combines dozens of alarm monitoring channels into one feed. How bot_allert works — dev.ua, November 5, 2026
If you want a channel aggregator for alerts, news, signals or community monitoring, the hard parts are the reader and sender split, deduplication, queueing and uptime. Our team designs and runs these systems as part of our Telegram bot development services, from a lean prototype to a multi-user product.
About the author
Ready to start? See our Telegram Bot Development Services, get in touch, or order on Fiverr.