A modular Telegram group management bot running with Python based on Pyrogram.
Can be found on Telegram as Anjani.
- Python 3.8 or higher (recomended).
- Telegram API key.
- Telegram Bot Token
- MongoDB Database.
Set up your bot configuration variables by renaming config.env_sample
to config.env
and edit it with your values.
Configuration must be done before running the bot, otherwise it will fail to run.
python3 -m pip install -r requirements.txt
.
python3 -m pip install .
This common error is caused by an outdated version of pip. This is a relatively new standard, so a newer version of pip is necessary to make it work.
Upgrade to pip 19 to fix this issue: pip3 install -U pip
Once everything set up, start the client by running
python3 -m anjani
If you want to make your custom plugins, refer to Anjani's Wiki. It has a lot of important things to read and a plugin example to guide you.