Skip to content

arkcoding/telegram-antispam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published