Hello guys! Today I will show you guys How to Setup a Typescript Aria Telegram Torrent Mirror Bot. This is another alternative to the Python Telegram mirror bot. It is also quite nice and easy to setup.
How to Setup a Typescript Aria Telegram Torrent Mirror Bot
Follow the video guide below to setup your own bot
Curated List of Commands and Steps
Setup Aria2 in Heroku using your Rclone config details
You must set up a Rclone remote with client id and client secret. Check this blog for detailed guides on how to do this. Also, check out the video guide above. If you already have this setup, then proceed to the next step.
Note down your Aria2 secret you chose during setup
_You can use your Aria2 in Heroku to also download Torrent files and upload to your Team Drive or Google Drive (see video guide above). However please note that indiscriminate Usage of Aria2 may lead to the suspension of your Heroku account, so deploy and use this at your own risk. I would advise you to use the Bot for all your torrent download tasks.
Get the TD or Google Drive folder ID (that us where you want your files to be downloaded into)
The ID is the series of numbers/letters that come after
0AGZ268Tq1UH6****** when you open the download destination TD or folder in a browser.
Get your Telegram user ID and group chat ID
You can use any of the below bots to get your IDs. You can forward messages from your group to the bots. For Raw Data Bot, you may also need to give it admin rights ib your group. You can remove these bots from your group afterward. Note that group ID usually begin with a dash (-).
Setup Telegram Bot Using Botfather
Use BotFather to setup your Telegram Bot and get the Bot Token
Bot Commands to Use.
After creating your Bot using Botfather, use these commands to
SetCommands for your Bot
mirror -Files of <30Gigs size mirrortar -as a .tar archive file mirrorstatus -Show Downloads Status cancelmirror -Cancel a mirroring task. cancelall -Cancel ALL mirroring tasks list -Send links of a mirror downloads getfolder -Send link of drive mirror folder.
Visit the Google Cloud Console and download your
credentials.json. Don’t forget to enable the drive API. If you have already done all these steps, you can just download the
Upload your Credentials into the root directory of the aria-telegram-mirror-bot (refer to the video guide above). Make sure you rename it to
Install Aria2 and Node
sudo apt install aria2
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs
sudo npm install -g typescript
Then, clone the Out386 Repo
git clone https://github.com/out386/aria-telegram-mirror-bot
Copy the configuration files from the examples file
cp src/.constants.js.example src/.constants.js
cp aria.sh.example aria.sh
Then, edit both the
constants.js and the
aria.sh files using your details gotten from the above steps. You can either use the Inbuilt MobaXtermEditor or use the Linux
To avoid getting any errors as shown in the video, ensure you change the
seed time to minutes (I chose 2 for mine) from the default 0.01 (seconds). Also delete the .config file in the VPS home directory if need be (refer to the video guide above).
The next step below is optional. You can run it just to check if your bot is well set up.
You need to give the Bot authorization to upload the downloaded files to your Team Drive or Google Drive. This is done just once after running your first torrent leeching task. You need to copy the link given in the VPS and paste it in a browser, follow the prompts and copy paste the authorization code into the VPS terminal. The authorization token is added to your
Credentails.json file and thereafter, all your uploads will be automatic.
That’s it guys. Now you know How to Setup a Typescript Aria Telegram Torrent Mirror Bot. Check out my other guides below. Visit EduetchTainment for more of such informative guides. Hit the like button and drop a comment. Join us on our Telegram Group chat for more interactive sessions. Subscribe to my YouTube Channel.