A Bot for Telegram made with Python using Pyrogram library. It needs Python 3.9 or newer to run.
THIS BOT IS INTENDED TO BE USED ON ONE GROUP, BECAUSE EVERY CALL TO NEW TASK THE PROGRESS WILL MOVED INTO THAT CHAT.
Bot should work with all Linux-based operating systems. This program is tested partially on Windows and not officially tested on macOS, but there shouldn't be any problem if you install the correct dependencies.
This bot uses MongoDB Atlas for it database, you can get it free at https://www.mongodb.com/ and save the uri for use on config or env variable.
Obviously you need git, and it should be already installed on major operating systems linux based.
First, clone this Git repository locally: git clone https://github.com/adekmaulana/aioaria2-mirror-bot
After that, you can run python3 -m pip install .
to install the bot along with the depencies.
Once it's installed, you can choose to invoke it using the bot
command, or run the bot in-place (which is described later in the Usage section). Running it in-place is recommended.
This common error is caused by an outdated version of pip. We use the Poetry package manager to make things easier to maintain, which works with pip through PEP-517. 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
config.env_sample
Copy config.env_sample
to config.env
and edit the settings as desired. Each and every setting is documented by the comments above it.
Obtain the API ID and API HASH from Telegram's website. TREAT THESE SECRETS LIKE A PASSWORD!
Obtain the BOT TOKEN from @BotFather. TREAT THESE SECRETS LIKE A PASSWORD!
Obtain the DB URI from MongoDB. TREAT THESE SECRETS LIKE A PASSWORD!
Obtain the G DRIVE SECRET from Google Console. TREAT THESE SECRETS LIKE A PASSWORD!
Configuration must be complete before starting the bot for the first time for it to work properly.
To start the bot, type python3 -m bot
if you are running it in-place or use command corresponding to your chosen installation method above.
You may also open an issue on GitHub for bugs, suggestions, or anything else relevant to the project.