How to Set Up Python Aria Telegram Torrent Mirror Bot | 2020
Table of Contents show

Introduction |

Hello guys. Welcome to another informative guide by EduTechTainMent. Today I will be walking you guys through How to Set Up Python Aria Telegram Torrent Mirror Bot. I find out that a lot of people experience difficulty setting up their telegram python bots either for their personal use or for use in a group.

What is Python Aria Telegram Torrent Mirror Bot

It is a Telegram bot based on the Python programming language. There are several GitHub repositories you can use to deploy your bot instance. We shall be using the repository of Izzy12 from which the other Python Repositories were forked from. There is also another similar Telegram torrent download bot based on Typescript.

How to Set Up Python Aria Telegram Torrent Mirror Bot
lzzy12/python-aria-mirror-bot
A telegram bot for all your mirror needs. Contribute to lzzy12/python-aria-mirror-bot development by creating an account on GitHub.

Features of Python Aria Telegram Torrent Mirror Bot

Mirroring direct download links to google drive
Download progress
Upload progress
Download/upload speeds and ETAs
Docker support
Uploading To Team Drives.
Index Link support
Service account support
Mirror all youtube-dl supported links
Mirror telegram files

Izzy12 GitHub Repo

How to Set Up Python Aria Telegram Torrent Mirror Bot

To learn How to Set Up Python Aria Telegram Torrent Mirror Bot, follow the video guide below.

Resources Used In This Guide

You can choose to fork the repo and use for your bot installation.

How to Set Up Python Aria Telegram Torrent Mirror Bot
Waga43/python-aria-mirror-bot
A telegram bot for all your mirror needs. Contribute to Waga43/python-aria-mirror-bot development by creating an account on GitHub.
EduTechTainMent | Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.

N.B. Comments are preceeded by hashes #

Repo Link

Python GitHub Repo

Itemised Steps to follow and Resources Used
git clone https://github.com/lzzy12/python-aria-mirror-bot mirror-bot/

Then,

cd mirror-bot

Then,

sudo apt install python3

Then,

sudo apt install apt-transport-https ca-certificates curl software-properties-common

Then,

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Then,

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" 

Then,

sudo apt-get update

Then,

apt-cache policy docker-ce

Then,

sudo apt-get install -y docker-ce

Then,

sudo systemctl status docker

Then,

pip3 install --no-cache-dir -r requirements.txt
Optional Step
python3 generate_string_session.py
Upload your Credentials.json file to the root directory of your mirror-bot i.e. into the mirror-bot folder (watch the video to see how).

Follow this guide to Create your own client ID and Secret and download the Credentials.json file

To Generate Token file (token.pickle) for Your Google Drive
pip3 install google-api-python-client google-auth-httplib2 google-auth-oauthlib

Then,

python3 generate_drive_token.py
(N.B. If you get this step wrong, your bot may download your torrent files into your VPS HDD/SSD storage but fail to Upload the files to your Google Drive or Team Drive because it doesn’t have the necessary authentication to do so)
Optional Step

You can decide to generate Service Accounts (SA) if you want to be able to upload more than 750GB daily into your Goolge Drive or Team Drive. THe daily upload quota is 750GB. SA allows you to exceed the quota without any limitations.Refer to AutoRclone for detailed guide

Create a copy of your Config File
cp config_sample.env config.env
Remove the first line saying:
_____REMOVE_THIS_LINE_____=True
Get Your Config.env Details Using these
Telegram API and Hash

API and Hash

Telegram Bot Token

Use Bot Father to create a telegram bot and copy its bot token.

Bot Token

Telegram User/Owner ID

To get this, forward any of your telegram messages to the bot in the link below. Owner ID

Optional Step

You can download this config.env file onto your local PC from your VPS. This helps to ensure subsequent bot setup process is faster since you already have the details in the config.env file you will upload.

Deploying
sudo dockerd
Build Docker image:
sudo docker build . -t mirror-bot
Run the image:
sudo docker run mirror-bot
Managing your Docker
To Know if Your Docker daemon is running
sudo docker ps
Then Copy container ID from the step above#
To Stop the the currently Running Docker, copy the container ID and run the code below without the quotation marks
sudo docker stop "ID copied from above"
Understanding Bot Commands to be Used
List of ALL commands available
self.StartCommand = 'start'
    self.MirrorCommand = 'mirror'
    self.TarMirrorCommand = 'tarmirror'
    self.CancelMirror = 'cancel'
    self.CancelAllCommand = 'cancelall'
    self.ListCommand = 'list'
    self.StatusCommand = 'status'
    self.AuthorizeCommand = 'authorize'
    self.UnAuthorizeCommand = 'unauthorize'
    self.PingCommand = 'ping'
    self.RestartCommand = 'restart'
    self.StatsCommand = 'stats'
    self.HelpCommand = 'help'
    self.LogCommand = 'log'
    self.CloneCommand = "clone"
    self.WatchCommand = 'watch'
    self.TarWatchCommand = 'tarwatch'
List of commands we shall use in this guide to edit our BotCommands in Telegram BotFather. You can add or modify it based on the above available commands, but follow the pattern shown below, with all commands on a single line.
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.

clone -a drive or download file
Common Errors and Troubleshooting Solutions

Error #1:

root - ERROR - The README.md file there to be read! Exiting now!

Solution #1: Check your config.env file. You probably didn’t remove or didn’t remember to save the file after removing the line:

"_____REMOVE_THIS_LINE_____=True"

Error #2:

Docker fails to start due to "volume store metadata database: timeout"

Solution #2: run the following codes serially:

ps axf | grep docker | grep -v grep | awk '{print "kill -9 " $1}' | sudo sh

Then,

sudo systemctl start docker

Thereafter skip running the sudo dockerd cmd. Instead continue from the Build Docker image: step by running:

sudo docker build . -t mirror-bot 

and

sudo docker run mirror-bot

Error #3:

failed to start daemon: pid file found, ensure docker is not running or delete the /var/run/docker.pid

Solution #3: You need to delete the docker.pid file in the /var/run directory. Run these codes below to get this done.

cd ~

Then,

cd /var/run

Then,

sudo rm -r docker.pid

Then navigate back to your mirror-bot directory with cd ~ and cd mirror-bot and continue your bot deployment process.

How to Set Up Python Aria Telegram Torrent Mirror Bot

Conclusion

That’s it guys. Now you can easily deploy your bots following this detailed guide. Don’t forget to subscribe to my YouTube Channel and like my posts. Use the subscription box below to get notified as soon as we publish new posts. Drop your questions using the comment box below and I shall respond ASAP. Read my other posts below to get all you need.

How to Set Up Python Aria Telegram Torrent Mirror Bot
How to Get Google Team (Shared) Drive with Unlimited Storage Space | 2020 - EduTechTainMent | Over ...
Table of Contents show 1. Introduction | 2. Other Mirror Links 3. Conclusion Introduction | Hello guys, EduTechTainMent is here to show you guys how to get Google Team Drive with unlimited Cloud ...

How to Set Up Python Aria Telegram Torrent Mirror Bot
How to Set Up an Amazon EC2 Linux VPS Instance for FREE | 2020 - EduTechTainMent | Over Every ...
Table of Contents show 1. Introduction | 2. Pre-requisites 3. How to Set up an Amazon EC2 Linux VPS Instance for FREE 4. Conclusion Introduction | Hello guys! How have you been? Today I shall be ...

How to Set Up Python Aria Telegram Torrent Mirror Bot
Best App to Manage your VPS and RDP | 2020 - EduTechTainMent | Over Every Possessor of Knowledge, ...
Table of Contents show 1. Introduction 2. Bonus Tip 2.1. Best App to Manage your VPS and RDP 2.2. Features 2.3. Download MobaXterm 3. Other Apps to Manage Your VPS and RDP 3.1. Termius 3.2. Putty and ...

How to Set Up Python Aria Telegram Torrent Mirror Bot
How to Get Free VPS - EduTechTainMent | Over Every Possessor of Knowledge, There is (Some) One ...
Hi guys. Today we shall be discussing how to get free VPS for your personal use. VPS means Virtual Private Server. It is somewhat different from an RDP- Remote Desktop Protocol, which is a Mircosoft ...

How to Set Up Python Aria Telegram Torrent Mirror Bot
How to Get Free VPS/RDP for One or Two Months [100% Confirmed] - EduTechTainMent | Over Every ...
Table of Contents show 1. Introduction | 2. Procedure 3. Pictorial Guide 4. Conclusion Introduction | Those who know how invaluable the use of VPS/RDP is will always want to lay their hands on one ...

EduTechTainMent - Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable
Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable

Get Free Email Updates from EduTechTainMent!

Signup now and receive an email once I publish new content.

I agree to have my personal information transfered to MailChimp ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Follow/Contact EduTechTainMent:

Comments

Send Comment Edit Comment


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
Previous
Next