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_HASHAPI_IDBOT_TOKENALD_USRBASE_URL_OF_BOTUncomment the below DB_URI and comment out the above DB_URIIS_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-composedocker-compose upIf you edit a file like ExecVarsSample.py in future just run below commands
docker-compose builddocker-compose upRun the following commands. (Following commands can be used to setup the vps from scratch)
git clone https://github.com/yash-dk/TorToolkit-Telegram.gitsudo apt updatesudo apt install -y python3.8sudo apt install -y python3-venvpython3 -m venv venvsource venv/bin/activatecd TorToolkit-Telegrampip install -r requirements.txtsudo apt install -y postgresql postgresql-contribapt -qq install -y curl git wget python3 python3-pip aria2 ffmpeg mediainfo unzip p7zip-full p7zip-rarcurl https://rclone.org/install.sh | bashapt-get install -y software-properties-commonapt-get -y updateadd-apt-repository -y ppa:qbittorrent-team/qbittorrent-stableapt install -y qbittorrent-noxAfter that setup the database:- Remember the 'your-pass' that you enter below
sudo -u postgres bashcreatedb tortkpsqlALTER USER postgres with password 'your-pass';exitexitAfter that setup the Variables.
Assuming that you are in the directory where you clonned the repo
cd TorToolkit-Telegram/tortoolkit/constsnano ExecVarsSample.pyAPI_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.shIS_VPS
False/TrueFalseAPI_HASH
""API_ID
0BOT_TOKEN
""BASE_URL_OF_BOT
""ALD_USR
[]DB_URI =
dbname=tortk user=postgres password=your-pass host=127.0.0.1 port=5432GD_INDEX_URL
RCLONE_BASE_DIR). (Dosen't matter if a slash is at the end or not)FalseEDIT_SLEEP_SECS
40TG_UP_LIMIT
2147483648 which is ~2GB) [Can be set from settings menu]1700000000FORCE_DOCUMENTS
True/False [Can be set from settings menu]FalseCOMPLETED_STR
▰REMAINING_STR
▱RCLONE_BASE_DIR
"/"LEECH_ENABLED
True/False [Can be set from settings under control action]TrueRCLONE_ENABLED
True/False [Can be set from settings under control action]FalseDEFAULT_TIMEOUT
"leech"/"rclone""leech"RCLONE_CONFIG
FalseDEF_RCLONE_DRIVE
""MAX_YTPLAYLIST_SIZE
20MAX_TORRENT_SIZE
10USER_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
instadl - Instagram Post/Reel/IGTV download
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
Yash-DK Lonami for awesome Telethon All the Libraries owner
Content type
Image
Digest
Size
396.2 MB
Last updated
over 5 years ago
docker pull tggithub/ttttt