This is a telegram bot writen in python for mirroring files on the internet to our beloved Google Drive.
This project is heavily inspired from @out386 's telegram bot which is written in JS.
Deploying is pretty much straight forward and is divided into several steps as follows:
git clone https://github.com/lzzy12/python-aria-mirror-bot mirror-bot/
cd mirror-bot pip3 install -r requirements.txt
sudo apt install aria2
sudo pacman -S aria2
cp bot/config_sample.ini bot/config.ini
Fill up rest of the fields. Meaning of each fields are discussed below:
./aria.shon linux or running
aria.baton Windows (Any issue on Windows is not supported and will be closed immediately)
python3 -m bot
Note: You can limit maximum concurrent downloads by changing the value of MAX_CONCURRENT_DOWNLOADS in aria.sh. By default, it's set to 2
heroku create appname
heroku git:remote -a appname
heroku stack:set container
git add -f credentials.json token.pickle ./bot/config.ini
git commit -m "Added Creds."
git push heroku master --force
heroku ps:scale worker=0
heroku ps:scale worker=1
Heroku-Note: Doing authorizations ( /authorize command ) through telegram wont be permanent as heroku uses ephemeral filesystem. They will be reset on each dyno boot.