Antispam Bot for Telegram

Antispam Bot for Telegram

This open source bot package provides a simple, yet effective way to deal with spam signups to Telegram Messenger (TG) groups.
Version: 0.6.0


eGenix has long been running a local user group meeting in Düsseldorf called Python Meeting Düsseldorf and we are using a Telegram group for most of our communication.

In the early days, the group worked well and we only had few spammers joining it, which we could well handle manually.

More recently, this has changed dramatically. We are seeing between 2-5 spam signups per day, often at night. Furthermore, the signups accounts are not always easy to spot as spammers, since they often come with profile images, descriptions, etc.

With the bot, we now have a more flexible way of dealing with the problem.


  • Low impact mode of operation: the bot tries to keep noise in the group to a minimum
  • Several challenge mechanisms to choose from, more can be added as needed
  • Flexible and easy to use configuration
  • Only needs a few MB of RAM, so can easily be put into a container or run on a Raspberry Pi
  • Can handle quite a bit of load due to the async implementation
  • Works with Python 3.9+
  • MIT open source licensed


eGenix Antispam Bot for Telegram is open source licensed under the MIT license.


Please see the README file in the Github repository for documentation.


The bot can be downloaded from PyPI or cloned via the Github repository:


eGenix offers these support options:

Commercial Support

Professional level support for this product as well as all other eGenix products and Python itself is available directly from the developers at

Consulting offers professional consulting services for all questions and tasks around this product, including customized modifications, help with integration and on-site problem solving. Please contact for details.

Free User Support

In order for our users to keep in touch and be able to help themselves, we have created the egenix-users user mailing list.

Credits and Notices

Thanks go out to Dan for creating the wonderful pyrogram async TG package.

"Telegram" is a trademark of Telegram LLC.

History & Changes

Please see the change log for details regarding changes to the package between releases.

Older versions of the eGenix Antispam Bot for Telegram are available on PyPI and as tags in the repo.