👮️ Ban all these annoying spammers from your public Telegram groups.
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.
- Create a Telegram bot by speaking to @BotFather.
- Clone this repo.
- Run
yarn install
- Create a
.env
file with the token you received from BotFather:
TOKEN='pasteyourtokenhere'
- Start it with
node index.js
. - Add your bot to your group and give it admin rights so it can delete messages and ban spammers.