So basically Tortoolkit is aimed to be the most versatile torrent leecher and Youtube-DL bot for telegram. This bot is highly customizable and to customize this bot you don't need to restart the bot every time. The bot gets started with minimum variables and others can be set as and when needed using the /settings.
Table of Content
Following are some awesome features offered by this bot:-
According to me, this platform provides resources that are enough for a genuine user and by default prevents Abuse: Click the logo to see the video guide to see how to deploy. The web is not yet available but soon will be available on Zeet.
ExecVarsSample.py location:- tortoolkit/consts/ExecVarsSample.py
Steps:-
You should install docker first :- How to Install Docker
Clone the repo and edit ExecVarsSample.py
API_HASH
API_ID
BOT_TOKEN
ALD_USR
BASE_URL_OF_BOT
Uncomment the below DB_URI and comment out the above DB_URI
IS_VPS
to True and if you want to change the port when IS_VPS is true then change SERVPORT
to your desired port number. (Note this should be used as backup)After that execute these commands in root of the repo where tortoolkit folder is located.
apt install docker-compose
docker-compose up
If you edit a file like ExecVarsSample.py in future just run below commands
docker-compose build
docker-compose up
Run the following commands. (Following commands can be used to setup the vps from scratch)
git clone https://github.com/yash-dk/TorToolkit-Telegram.git
sudo apt update
sudo apt install -y python3.8
sudo apt install -y python3-venv
python3 -m venv venv
source venv/bin/activate
cd TorToolkit-Telegram
pip install -r requirements.txt
sudo apt install -y postgresql postgresql-contrib
apt -qq install -y curl git wget python3 python3-pip aria2 ffmpeg mediainfo unzip p7zip-full p7zip-rar
curl https://rclone.org/install.sh | bash
apt-get install -y software-properties-common
apt-get -y update
add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable
apt install -y qbittorrent-nox
After that setup the database:- Remember the 'your-pass' that you enter below
sudo -u postgres bash
createdb tortk
psql
ALTER USER postgres with password 'your-pass';
exit
exit
After that setup the Variables.
Assuming that you are in the directory where you clonned the repo
cd TorToolkit-Telegram/tortoolkit/consts
nano ExecVarsSample.py
Change the following:-
API_HASH
API_ID
BOT_TOKEN
ALD_USR
BASE_URL_OF_BOT
Change DB_URI = "dbname=tortk user=postgres password=your-pass host=127.0.0.1 port=5432"
Enter the password in the above string.
After that run (You can use any port for the web interface here i am using 80). Each time before starting the bot export the port Number
export PORT=80
And finally run this in clonned folder.
chmod 777 start.sh
./start.sh
IS_VPS
False
/True
False
API_HASH
""
API_ID
0
BOT_TOKEN
""
BASE_URL_OF_BOT
""
ALD_USR
[]
DB_URI
=
dbname=tortk user=postgres password=your-pass host=127.0.0.1 port=5432
OWNER_ID
=
0
GD_INDEX_URL
RCLONE_BASE_DIR
). (Dosen't matter if a slash is at the end or not)False
EDIT_SLEEP_SECS
40
TG_UP_LIMIT
2147483648
which is ~2GB) [Can be set from settings menu]1700000000
FORCE_DOCUMENTS
True
/False
[Can be set from settings menu]False
COMPLETED_STR
▰
REMAINING_STR
▱
RCLONE_BASE_DIR
"/"
LEECH_ENABLED
True
/False
[Can be set from settings under control action]True
RCLONE_ENABLED
True
/False
[Can be set from settings under control action]False
DEFAULT_TIMEOUT
"leech"
/"rclone"
"leech"
RCLONE_CONFIG
False
DEF_RCLONE_DRIVE
""
MAX_YTPLAYLIST_SIZE
20
MAX_TORRENT_SIZE
10
USER_CAP_ENABLE
: Work in progress
USER_CAP_LIMIT
: Work in progress
leech - To Leech a torrent or download a direct link
ytdl - Donwload YouTube Video
pytdl - Download YouTube Playlist
about - About the bot
status - Status of all the downloads
server - Get server status
usettings - User Settings (private also)
instadl - Instagram Post/Reel/IGTV download
setthumb - Set the thumbnail
clearthumb - Clear the thumbnail
speedtest - Testing internet speed host
settings - Settings of the bot ⚠️ Admin Only
pauseall - Pause all torrents⚠️ Admin Only
resumeall - Resume all torrents⚠️ Admin Only
purge - Delete all torrents ⚠️ Admin Only
getlogs - Get the robot logs ⚠️ Admin Only
Lonami for awesome Telethon