Skip to content

prgofficial/TorrentLeech-GDriVe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For Support join here MoviezOnlySupport

Working example group Leech Here

Telegram Torrent Leecher 🔥🤖

A Telegram Torrent (and youtube-dl) Leecher based on Pyrogram

This is a leech to FILE repo! Leech to STREAM(video) availabe here > Stream

Benefits :-

✓ Telegram File mirrorring to cloud along with its unzipping, unrar and untar
✓ Drive/Teamdrive support/All other cloud services rclone.org supports
✓ Unzip
✓ Unrar
✓ Untar
✓ Custom file name
✓ Custom commands
✓ Get total size of your working cloud directory
✓ You can also upload files downloaded from /ytdl command to gdrive using `/ytdl gdrive` command.
✓ You can also deploy this on your VPS
✓ Added /clearall command to clear the downloads which are not deleted automatically.
✓ Added support for youtube playlist ( use /pytdl )

Credit goes to SpEcHiDe for his Publicleech repo & GautamKumar for his repo

Installing

HEROKU SUPPORT REMOVED

IT's BETTER THAT WAY !!

The Legacy Way

Simply clone the repository and run the main file:

an example config.py 👇

from tobrot.sample_config import Config

class Config(Config):
  TG_BOT_TOKEN = ""
  APP_ID = ""
  API_HASH = ""
  AUTH_CHANNEL = ""
git clone https://github.com/prgofficial/TorrentLeech-GDriVe
cd TorrentLeech-GDriVe
virtualenv -p python3 VENV
. ./VENV/bin/activate
pip install -r requirements.txt
python3 -m tobrot

YOU NEED UNLIMITED TEAM/SHARE DRIVE IN ORDER TO USE THE GDRIVE FUNCIONS Flawlessly (normal GDRIVE has 15 gb of storage only)

Set Rclone
  1. Download Rclone from Here > DOWNLOAD

  2. Extract the downloaded zip file and run cmd(hold shift and right click) from the Extracted folder.

  3. RUN rclone config and follow the onscreen instructions!

  4. If done Correctly, you'll get some thing like this in the cmd ;

    type = drive client_id = 55965362181-5105rlkk8dq8ej3iopmfc0.apps.googleusercontent.com client_secret = VOqihw0cqXPCdDo7UR scope = drive token = {"access_token":"ya29.a0ASMA0zZmcJHRao_Et9YqPrSRq0hZBdVElo4TUIP_1R6DJx4vWzd- 00MbrlZdmH3sTRnOYhseTsEqKXcBfleu4yTfpeTJjAmaUCYkIsYuEsj608ncZEM3QZVnjnA7c7- TeI","token_type":"Bearer","refresh_token":"1//0gOjRXzVHCgYIARAAGBASNwF-L9IrdBJRlXXUqUvOES7H4Ge3UDhy7mJLvJcROd9XQsI6e8zJsHQ88cw","expiry":"2020-07- 02T10:17:13.1076684+02:00"} team_drive = 0AAHdpck9PVA

  5. Copy these entries from CMD and paste it in ' RCLONE_CONFIG ' {heroku var} - Don't try to copy paste the above string; It wont work 🤣.

Set IndexURL
  1. Go to https://gdindex-code-builder.glitch.me/, and follow its instructions. Copy the code!
  2. Go to https://dash.cloudflare.com/c8bf985554bb03b455f683f8cafe25f2/workers/new and login/signup.
  3. Paste the code in script section. Then save and deploy.
  4. You'll get your GDIndex link.
  5. Add new key in HEROKU Vars - ' INDEX_LINK ' and add the above index link as value

HOPE Everything will be working by now! For any support ping me here > MoviezOnlySupport

FAQ

  • INDEX_LINK: (Without / at last of the link, otherwise u will get error) During creating index, plz fill Default Root ID with the id of your DESTINATION_FOLDER after creating. Otherwise index will not work properly.

Available Commands

  • /ytdl: This command should be used as reply to a supported link

  • /leech: This command should be used as reply to a magnetic link, a torrent link, or a direct link. [this command will SPAM the chat and send the downloads a seperate files, if there is more than one file, in the specified torrent]

  • /leech archive: This command should be used as reply to a magnetic link, a torrent link, or a direct link. [This command will create a .tar.gz file of the output directory, and send the files in the chat, splited into PARTS of 1024MiB each, due to Telegram limitations]

  • /gleech: This command should be used as reply to a magnetic link, a torrent link, or a direct link. And this will download the files from the given link or torrent and will upload to the drive using rclone.

  • /gleech archive This command will compress the folder/file and will upload to your google drive.

  • /leech unzip: This will unzip the .zip file and dupload to telegram.

  • /gleech unzip: This will unzip the .zip file and upload to drive.

  • /leech unrar: This will unrar the .rar file and dupload to telegram.

  • /gleech unrar: This will unrar the .rar file and upload to drive.

  • /leech untar: This will untar the .tar file and upload to telegram.

  • /gleech untar: This will untar the .tar file and upload to drive.

  • /tleech: This will mirror the telegram files to ur respective cloud drive.

  • /tleech unzip: This will unzip the .zip telegram file and upload to drive.

  • /tleech unrar: This will unrar the .rar telegram file and upload to drive.

  • /tleech untar: This will untar the .tar telegram file and upload to drive.

  • /getsize: This will give you total size of your destination folder in cloud.

Process to run this BOT on VPS

  • Clone this repo:
git clone https://github.com/gautamajay52/TorrentLeech-Gdrive 
cd TorrentLeech-Gdrive
  • Install requirements For Debian based distros
sudo apt install python3

Install Docker by following the official docker docs

Setting up config file

cp tobrot/g_config.py tobrot/config.py

Follow and fill all the required variables that were already filled in the sample config file, but with your details. And you can also fill all other variables according to your need and all those are explained above already.

Deploying

  • Start docker daemon (skip if already running):
sudo dockerd
  • Build Docker image:
sudo docker build . -t TorrentLeech-Gdrive
  • Run the image:
sudo docker run TorrentLeech-Gdrive

Credits, and Thanks to

About

Torrent Leecher with GDRIVE support

Resources

License

Stars

Watchers

Forks

Languages