A python channel to channel forwarder bot with regex filters on the messages being sent based on Pyrogram MTProto API framework.
Do not consider this project as a install and good to go bot.
It has got to be tweaked according to your needs.
Also, don't forget to Fork & Star the repository if you like it!
** Requirements:
*** How to Install the Requirements?
Tested Python version: Python 3.8+
You must have pip or poetry installed. Please look up how to install them in your OS.
Download a release of this project or clone the repository then navigate to the
folder where you placed the files on.
Type pip install -r requirements.txt
to get all the requirements installed in one go.
Similar instructions applies for poetry.
-
Install the required packages
-
To configure this bot add the environment variables stated below. Or add them in user_data.env.
-
Tweak the regexes in BotConfig.py according to your needs.
-
Run the script in terminal or deploy it into a docker container. (A docker-compose.yml template can be found in the repo files) .
-
If you are trying to install this on windows machine you'll have to either:
- host your MongoDb database download here for Windows users
- provide a correct connection URI string for the MongoDB db instructions can be found here
- deploy it with the docker MongoDB image (the docker-compose.yml contains already the template for it).
-
Run the bot with
python -m ForwardBot
or if you want to deploy it to a docker container check this file.
By using this repo/script, you agree that the authors and contributors are under no obligation to provide support for the script and can discontinue its development, as and when necessary, without prior notice.