Getting Started
TG Filter moderates Telegram groups: every message is classified, convicted spam is removed, and every decision is recorded. This page explains the product, how a message travels through it, and how to read the result.
What TG Filter Is
TG Filter is a moderation service for Telegram groups. A Rust-based filter receives messages from the Telegram bot, normalizes the text, gathers evidence from signatures, URL reputation and campaign history, and returns a verdict: allow, review or delete. The dashboard in this application reads the filter's decision log and presents it.
curl -X POST https://bot.tgfilter.co/moderate --data-binary "долларов в неделю пишите в лс"How a Message Flows
Telegram delivers an update to POST /webhook. The filter extracts the text and chat id, runs the local layers, and escalates ambiguous messages to the judge. Convicted messages are deleted by the bot, and the decision is written to the store, which the dashboard reads.
Ingest
The bot receives updates over the webhook; non-message updates are acknowledged and ignored.
Decide
Local layers first, the judge only for the grey zone; errors fail open to review.
Reading Verdicts
Every verdict carries a score from 0 to 1 and reason codes naming the evidence (for example signature:job_scam_ru:долларов в неделю or blocklist:url). The score bands are configurable: by default below 0.35 is allow, 0.35 to 0.7 is review, and 0.7 or higher is delete.