A Telegram permission control bot that turns off all permission except send text for the new members in the group.
Set up the bot token in your however you want, for example:
export TOKEN=YOURTOKEN
Set up the MongoDB url, and set up your MangoDB Server
export DATABASE_URL=YOURURL
Install the dependencies:
PS: Please note that this project is based on python3, please do not use python2
pip install -r requirements.txt
or pip3 install -r requirements.txt
Run the script:
python -m cyan_telegram_moderator_bot
or python3 -m cyan_telegram_moderator_bot
When new user enters chat, the bot first ban all rights except 'Send Text'.
When any user send a new message, the bot will create the user's profile if not exists, and increment the user's message count.
When the user has reached the message threshold, regular user privileges will be given to that user.
This project is licensed under the MIT License - see the LICENSE.md file for details