Examples

Last updated: November 17, 2026

Fetch recent alerts (free)

curl "https://bot.tgfilter.co/moderate?limit=10"

Fetch with an API key (real-time, all kinds)

curl -H "Authorization: Bearer your_key" \
  "https://bot.tgfilter.co/moderate"

Stream alerts in the browser (free, delayed)

const source = new EventSource("https://bot.tgfilter.co/moderate/batch");
source.onmessage = (e) => console.log(JSON.parse(e.data));

EventSource cannot send headers, so this is always the delayed free stream. For keyed real-time streaming use a server-side SSE client.

Poll for new alerts since a timestamp

curl -H "x-api-key: your_key" \
  "https://bot.tgfilter.co/moderate?since=2026-11-17T00:00:00Z&limit=50"
TG Filter

Telegram spam filtering for groups, with an auditable decision log.