Skip to content

Latest commit

 

History

History
113 lines (64 loc) · 2.75 KB

README.md

File metadata and controls

113 lines (64 loc) · 2.75 KB

Cyan Telegram Bot

A Telegram permission control bot that turns off all permission except send text for the new members in the group.

Getting Started

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

Details

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.

License

This project is licensed under the MIT License - see the LICENSE.md file for details