telegram-crypto-antispam-bot icon indicating copy to clipboard operation
telegram-crypto-antispam-bot copied to clipboard

👮️ Ban all these annoying spammers from your public Telegram groups.

telegram-crypto-antispam-bot

👮️ Ban all these annoying spammers from your public Telegram groups.

What does this bot do?

Currently it checks if there has been a forwarded message with any link entity, removes the message, and bans the user that sent it. It does the same thing when it matches a mention of t.me/bitcoin and some other variations. Check index.js for the regex list.

How to use

  1. Create a Telegram bot by speaking to @BotFather.
  2. Clone this repo.
  3. Run yarn install
  4. Create a .env file with the token you received from BotFather:
TOKEN='pasteyourtokenhere'
  1. Start it with node index.js.
  2. Add your bot to your group and give it admin rights so it can delete messages and ban spammers.