This bot is used in order to let your telegram chat members deside whether to allow a new member to join the chat. Every new member is required to write a short text about himself, then his fate is desided by voting.
To run this bot, you will need the following installed in your system:
- JRE 8 or higher
- Redis
To build the project from source, you will also need:
- Git
- Maven
- JDK 8 or higher
- Clone the repository using git:
git clone https://github.com/Sallatik/telegram-storoj-bot.git
cd telegram-storoj-bot
andmvn install
All config is done using bot.properties file. There are useful comments there explaining what each property is using for.
To run the bot in long-polling mode, you only have to specify bot.token
and bot.username
properties.
If you want to customize the messages, edit messages.properties file.
- Run the redis server locally by executing
redis-server
cd
into project directory and executejava -jar target/storoj-bot-jar-with-dependencies.jar
- Add the bot to your group chat
- Grant the bot with admin permissions to kick users and to invite users via link
- Publish a link to your bot instead of an invite link, so that new users will know how to join your chat.
Note that the bot will kick anyone trying to sneak into the chat without permission