v1.0.0

Getting Started

TG Filter moderates Telegram groups: every message is classified, convicted spam is removed, and every decision is recorded and explainable. Start here.

What TG Filter Is

TG Filter is a moderation service for Telegram groups. You add the bot as an administrator; from then on every message is scored. The detection engine normalises the text, gathers evidence from phrase signatures, URL reputation and campaign history, and returns one of three verdicts: allow, review or delete. The dashboard reads the same decision log and shows you what happened and why.

curl -X POST https://bot.tgfilter.co/moderate \ --data-binary "долларов в неделю пишите в лс"

Detects, does not guess

Obfuscation, homoglyphs and link reputation are handled by deterministic layers before any model is consulted.

Explains every verdict

Each decision carries reason codes such as signature:job_scam_ru or blocklist:url, so a deletion can always be justified.

How a Message Flows

Telegram delivers an update to the bot's webhook. The filter extracts the text and the chat id and runs the local layers. Anything ambiguous is escalated to the judge rather than deleted on a guess. Convicted messages are removed by the bot, and the decision is written to the log that the dashboard reads.

Ingest

Updates arrive over the webhook. Non-message updates are acknowledged and ignored, so Telegram stops retrying them.

Decide

Local layers run first; the judge only ever sees the grey zone. Errors fail open to review.

Reading Verdicts

Every decision has a score from 0 to 1 and a list of reason codes naming the evidence. The bands are configurable. By default, below 0.35 is allow, 0.35 up to 0.70 is review, and 0.70 or above is delete. A human override, if set, replaces the machine verdict for display and in the API.

Allow

Nothing corroborates this as spam. The message stays untouched.

Review

Some evidence, not enough to convict. Kept, logged, and judged if a judge is configured.

Delete

Convicted. The bot removes the message and the reasons are recorded with it.