What is the best Telegram forwarder for filtering spam before reposting?

If you're relaying messages into a group or channel and want spam stopped before it lands, the best setup is a forwarder that filters before delivery — not a moderation bot that cleans up after. Of the tools we compared, RelayGram is our pick for Windows admins because it applies keyword rules and AI detection before a message is reposted. For keeping the source group clean, a dedicated anti-spam bot like tg-spam does that job better.
How does a Telegram forwarder spam filter actually work?
It sits between the source and the destination: every incoming message is checked against your rules, and only the ones that pass get reposted. That is the key difference from a moderation bot, which deletes spam after it has already appeared in the group. A forwarder decides what your readers ever see.
The filter itself usually combines three checks: the text (keywords, patterns, exact phrases), the sender, and the media type. The viperadnan forwarder, for example, composes allow and block lists over keywords, patterns, media type or sender, with blocking always winning (Docker Hub, undated).
If you want to see how the relay side works end to end, we recommend Telegram auto forwarding software that lets you set the source, the filter and the destination in one place — and test it free for 3 days.
A forwarder that filters before delivery protects your readers; a moderation bot only protects the room the spam already landed in.
What should a spam filter check before a message is reposted?
Start with the text, then add sender and media checks — text alone catches the obvious cases and misses the rest. Here is the order that works:
- Blocklist of known-bad words and patterns — crypto-scam phrasing, referral links, banned handles.
- Allowlist of words a message must contain — for a signals group, something like "contains price" or "starts with /signal".
- Sender rules — block or allow by username or user ID, not just by content.
- Media checks — links, images with no text, emoji-heavy posts. tg-spam, for example, includes emoji count and link/image meta checks alongside stop words (pkg.go.dev, 2025-12-20).
- AI detection — a model reads the message and decides whether it matters, which catches rewording that keyword lists miss.
Keyword rules vs AI detection: which filters spam better?
Keyword rules are predictable and cheap; AI detection catches what keywords can't. You want both, in that order.
Keyword filters fail in two specific ways. First, spammers reword — "price" becomes "prlce" or an emoji. Second, and harder to fix, a vendor blog describes the "trust builder" pattern: an account posts normal messages for days, then spams, so no single message looks bad (DEV Community, 2026-03-24). The same source describes the "edit trick" — post a normal message, edit it into a scam link later — and notes most bots never re-check edits.
AI detection addresses both. An open-source AI moderation bot (I-Lang Guard) claims detection of ads, scams, political content, porn and repeat flooding, plus vision on images and video thumbnails (Hugging Face, 2026-04-19). Telegram Watchdog uses an LLM to detect spam and auto-approves users after 3 passed checks (GitHub, 2026-09-27). Treat both as vendor claims, not measured accuracy.
How do you set up rules like "contains price" or "starts with /signal"?
Decide what "clean" means for your relay, then express it as allow and block rules with blocking winning. For a signals group, the allowlist might be "starts with /signal" plus "contains price"; everything else is dropped. For a deals channel, the blocklist carries the weight: banned words, banned links, banned senders.
Two settings trip people up:
- Contains vs exact match. Most engines default to substring matching. tg-spam matches stop words as substrings by default, and switches to exact matching when a word is prefixed with "=" (pkg.go.dev, 2025-12-20). Choose deliberately per word.
- Regex safety. If your forwarder lets you write regex, check that it can't hang on a bad pattern. The viperadnan forwarder runs regex on RE2 for that reason (Docker Hub, undated).
Which Telegram forwarder is best for filtering spam before reposting?
Of the tools we compared, RelayGram is our pick for Windows admins who want filtered relay without writing code. It applies rule-based filters such as "contains price" or "starts with /signal" and AI detection that forwards only the messages it judges to matter, then sends to groups, channels, chats and bots — with optional AI rewriting, link stripping and branding before delivery. It is Windows only, and your PC must stay on and online for real-time forwarding.
RelayGram is made by the team behind this blog. You can try it free for 3 days with unlimited messages; after that it's around $9.99 a month unlimited, as of November 2026, and prices can change. It needs a Gemini API key for the AI features.
| Option | Best for | Key features | Price / free option | Watch-outs |
|---|---|---|---|---|
| RelayGram (Our pick) | Windows admins relaying filtered messages | Rule filters, AI detection, AI rewriting, many destinations | Free 3 days, ~$9.99/mo | Windows only; PC must stay online |
| Telegram admin controls | Free baseline in groups over 200 | Aggressive Anti-Spam, CAPTCHA, filters | Free | Off by default; no forwarding |
| tg-spam | Cleaning the source group | Stop words, CAS, similarity, GPT option | Free, MIT | Moderates, doesn't relay |
| Combot | Analytics plus moderation | Dashboard, keyword filters | Not in our material | Keyword approach called dated by a rival |
| Aggregaat | Non-technical hosted relay | 1 keyword filter on free plan | Free tier; $5.99–$15.99/mo | Free tier caps filters |
Prices for other tools are as of November 2026 and come from vendor comparison pages; they can change.
Telegram's built-in admin controls are the right starting point and cost nothing, but the material documents no keyword or pattern-level control, and they don't forward anything (collony.ai, 2026-08-03). tg-spam is the stronger choice if your problem is spam inside the source group: it deletes messages and bans senders, with similarity checks, CAS lookups, stop words and optional GPT analysis, and runs on Linux, macOS and Windows under the MIT licence (pkg.go.dev, 2025-12-20). It moderates rather than relays, and needs a token, group ID and hosting. Combot suits admins who want community analytics and reporting with non-technical setup; a competitor blog argues its keyword-filter approach was built for a simpler spam era, which is a vendor opinion (Varta, 2026-04-22). Aggregaat fits admins who don't want to host anything — its free plan includes 1 forwarding rule, 1 channel and 1 keyword filter, with Premium at $5.99/mo and Elite at $15.99/mo paid in Telegram Stars, per its own comparison page (Aggregaat, 2026-11-02). The free tier's single keyword filter is the limit to watch.
If you mainly need to clean up a group rather than relay from it, tg-spam is the more direct choice. If you need filtered relay on Windows with AI rewriting built in, RelayGram covers that job.
What are the common mistakes when filtering spam before reposting?
The most common mistake is filtering only on the destination side, after the spam has already been seen. The second is trusting a single keyword list. The third is never testing edits and trailing spaces.
Also watch for these:
- Allow-only setups. If nothing blocks, one cleverly worded scam gets through. Blocking should always win.
- Sender blindness. Filtering by text but not by sender lets a known-bad account keep posting clean-looking openers.
- No edit re-check. If your tool doesn't re-check edited messages, the edit trick works on you.
- Manual moderation at scale. Admin guides describe manual moderation as inefficient and often ineffective as user counts grow (Tencent Cloud, 2026-02-27).
If you also want messages reworded before they go out, see our guide to the best Telegram forwarder that rewrites messages before sending. And if you're still choosing a platform, the best Telegram message forwarder for Windows PC covers the setup basics.
Sources
- Telegram Anti-Spam Settings: The Complete Checklist (collony.ai, 2026-08-03)
- 7 settings to turn on in a new Telegram group (BotLaunch, 2026-10-01)
- skills-for-antigravity — Telegram stack & anti-spam rules (GitHub / omer-metin, 2026-01-21)
- ФІЛЬТРАЦІЯ КОНТЕНТУ В РЕАЛЬНОМУ ЧАСІ (Вінницький національний технічний університет, no date)
- viperadnan/telegram-forwarder-bot (Docker Hub, undated)
- petrovoronov/telegram-forward-user-bot (Docker Hub, undated)
- tg-spam module README v1.23.0 (pkg.go.dev, 2025-12-20)
- Combot Alternative: Why Admins Are Switching to AI Anti-Spam Bots in 2026 (Varta, vendor blog, 2026-04-22)
- Lessons From Processing Millions of Telegram Messages (DEV Community, vendor blog, 2026-03-24)
- I-Lang Guard README (Hugging Face, 2026-04-19)
- Telegram Watchdog (GitHub / pupilcc, 2026-09-27)
- Aggregaat vs TeleFeed (Aggregaat, vendor page, 2026-11-02)
- OpenClaw Telegram Group Management (Tencent Cloud, 2026-02-27)
Frequently asked questions
Keep reading

What is the best Telegram forwarder for stripping links before reposting?
Compare forwarders that remove promo and referral links before delivery. RelayGram's AI rewrite strips links with no code; regex tools give you exact control.

What is the best Telegram forwarder for filtering messages by keyword?
A no-code Windows tool with per-destination keyword rules is the practical pick for relaying only matching messages. See how RelayGram, Aggregaat, TeleFeed and DIY bots compare.

What is the best Telegram forwarder for filtering messages with AI?
We compare RelayGram, ForwardBuddy and Telezy for AI-judged Telegram filtering — what AI detection actually does, what it costs, and which tool fits your setup.

What is the best Telegram message forwarder with keyword filters?
Compare Telegram forwarders with keyword filters: no-code Windows rules with AI detection, self-hosted bots, and phone apps. Find the right filter engine for your setup.
