Giter Club home page Giter Club logo

bossbot.io's Introduction

BossBot Telegram Bot for Admins

Open-source bot that helps you to administrate Telegram groups.

Follow Us On alt text

Installing

If you are about to obtain your own copy/fork of this bot complete the following steps:

  1. Clone repo
$ git clone https://github.com/Singapore-Tech-Entrepreneurs/telegram_bot_for_admins.git
  1. Install dependencies (you need node.js and NPM installed)
$ cd telegram_bot_for_admins
$ npm install
  1. Create config.json file (you have config-example.json, you can copy and edit it). Fill it with your bot api token and mongo connection string. To obtain telegram bot token you may need to use BotFather. Free mongo database you can obtain at mlab.com, for example.

  2. Run it

$ npm start

Using

  1. Add your bot to supergroup.
  2. Promote him to admin
  3. Activate bot by sending him any message.
  4. Configure it by typing /config right in your group. This step is important, because you can administer more than one group, so bot need to know, what group you want to configure right now.
  5. Bot will send you keyboard (in private message), that you can use to toggle message filters and more.

Features

You can activate and configure features in the menu, that bot sends you by typing /config in the supergroup you want to configure. You must be admin of this supergroup.

Just push the button with function you want to toggle.

Delete "%user% joined the group" messages

If enabled, bot will delete all "%user% joined the group" and "%user% left the group" service messages. That works only for new messages that was sent when option was enabled.

Delete "%user% pinned «%message%»"

Works same as above for "pinned" service messages

Delete arabic messages

If enabled, bot will delete all mesages with any arabic symbols.

Delete messages with urls

If enabled, bot will delete all mesages with urls. Urls are detected by default telegram mechanism.

Delete messages with commands

If enabled, bot will delete all mesages with commands, e.g. "/config"

Restrict spam

If enabled, bot will delete messages that user sends too frequently. Rules and type of restriction will be configurable in future releases.

Chat commands

/config - start to configure current group.

/kick - removes user from chat. Need to be written in a reply to user you want to restrict.

/ban - removes and add user to blocklist. Need to be written in a reply to user you want to restrict.

/warn - warns user about unacceptable behavior. Increases "warns" counter for user. If counter reach 3 - user get banned. Need to be written in a reply to user you want to restrict.

/unwarn - clears "warns" counter. Need to be written in a reply.

Bot command

/set_hello %%% - sets hello message for new users. Message can have placeholder $name. You can call /set_hello without message to set default message for current group. To disable Hello message use configuration keyboard.

/help - show help message.

Contibution

You are free to help us to implement new features that described in issues. Please, make PRs into develop branch.

bossbot.io's People

Contributors

6gzkwt3af75q avatar ichi404gh avatar nacalyator avatar ravibhushan29 avatar taleliyahu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.