botEOS is a simple bot in node to block spam in telegram.
$ git clone [email protected]:kesar/boteos.git
$ cd boteos
$ npm install
Copy bot.yml.dist into bot.yml and change your token and banner_words.
A bot token is required and can be obtained by talking to @botfather.
After create your bot token and setup your config, just run npm start
. Then you will need to invite your bot to the desired channels and add him as Admin.
mongodb is optional, if you define your mongodb connection string, you will be able to log all the messages into your database. You may need to /setprivacy (with BotFather) of your bot to allow access to channel msgs.