/Anjani

Telegram group management bot with spam protection powered by Machine Learning and tesseract.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Anjani

forthebadge made-with-python

DeepSource Codacy Badge

A modular Telegram group management bot running with Python based on Pyrogram.

Can be found on Telegram as Anjani.

Deploy to Heroku with button

Deploy to Heroku

Deploy to heroku with github actions

Requirements

Set Up

Configuration

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.

Dependencies

Install all required dependencies by running

python3 -m pip install -r requirements.txt.

Install the bot along with depencies by running

python3 -m pip install .

Error: Directory '.' is not installable. File 'setup.py' not found.

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

Run

Once everything set up, start the client by running

python3 -m anjani

Plugin

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.

Credits