Talking to customers · Independent · 20 Oct 2026

umputun/tg-spam

Anti-spam bot for Telegram and general-purpose anti-spam library and server

← Talking to customers
TG-Spam: Telegram spam killer. Watches group chats and removes spam automatically.

In simple English

Telegram groups often attract spam bots that post unwanted links and advertisements. This self-hosted bot watches every incoming message and deletes spam the second it appears. It can also ban the spammer permanently. You run it on your own server using a simple Docker container. It is free to run, though you can optionally connect paid AI models for extra protection.

What it is

TG-Spam is an anti-spam bot written in Go that runs inside Telegram groups and checks messages against multiple filters. It stores known spam patterns in an SQLite or PostgreSQL database and learns from human moderator actions.

What it is good for

Community builders and group owners who want to stop automated scams and crypto spam in Telegram without paying for commercial moderation services.

Stars455
LicenceMIT
Latestv1.29.0 (2026-10-14)checked 20 Oct 2026
Last code change2026-10-14
Written inGo
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Runs lightweight on a small server, a VPS, or a Raspberry Pi.
  • Combines classic word matching with optional AI checks from OpenAI and Gemini.
  • Includes a web interface for managing settings and reviewing banned users.
Watch for
  • Requires technical setup using a Docker container and a Telegram bot token.
  • Mistakes by the bot can permanently ban legitimate users if thresholds are set too aggressively.
  • Running optional AI models adds ongoing API costs.
Replaces

manual moderation and commercial Telegram protection services

Works well with

a Telegram bot token and a dedicated chat group

Also reviewed on Repo Radar
  • Notifuse/notifuse2.2k stars

    Self-hosted newsletters, automations and transactional email, built on a delivery service you supply.

  • krayin/laravel-crm24k stars

    A self-hosted record of customers, leads and sales, built on the Laravel PHP framework.

  • nikoksr/notify3.9k stars

    A Go library that sends the same message to many messaging services through one call.

Install
docker run -d \
  --name tg-spam \
  -e TELEGRAM_TOKEN="your-bot-token" \
  -e TELEGRAM_GROUP="your-group-id" \
  -v /path/on/host:/srv/data \
  umputun/tg-spam

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Marketing & Growth › Social Media Marketing › Community Management.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.