Skip to content

CyanNyan/cyan_telegram_moderator_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cyan's Telegram moderator bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published