A powerfull Telegram Leech Bot

Overview

HM LEECH ZONE BOT

owner of this repo :- Abijthkutty

contact me :- Abijth

Telegram Torrent and Direct links Leecher

Dont Abuse The Repo ... this is intented to run in Small Places or For Short time 😐

A Telegram File Provider , Direct Links (and youtube-dl) Leecher based on Pyrogram

Benefits :-

✓ Google Drive link cloning using gclone.(wip)
✓ 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
✓ Option to select either video will be uploaded as document or streamable
✓ Added /renewme command to clear the downloads which are not deleted automatically.
✓ Added support for youtube playlist 😐
✓ Renaming of Telegram files support added. 😐
✓ Changing rclone destination config on fly (By using `/rlcone` in private mode)

Some Other Features You will Find In this fork :-

✓ Aria2 configs In Root
✓ Small FIx for Gclone
✓ Unzip error Fixed
✓ Heroku Workflow Added
✓ UI mod Added for Improved User Experience
✓ Added Dynamic Config 
✓ Added Custom ToggleDoc and ToggleVid Cmd
✓ Added Custom Rename Command via vars

TO-DO

  • Gdrive file clonning using Gclone DONE ✓
  • Adding mp3 files support while playlist downloading.
  • Password support while Unarchiving the files.
  • Selection of required files during leeching the big files using aria(/leech command)

Deploying on Heroku

Click on the below button 👇 👇 👇 👇

Deploy to Heroku

Variable Explanations 👇


Required Environmental Variables... MUST BE GIVEN....

Variable Value Example Required Description
TG_BOT_TOKEN Telegram Bot Token your telegram bot api key/token True Create a bot using @BotFather, and get the API token.
APP_ID Telegram APP_ID Your TG account's APP_ID True Get this value from TELEGRAM.
API_HASH Telegram API_HASH Your TG account's API_HASH True Get this value from TELEGRAM.
OWNER_ID TG account's ID Your TG account's ID True ID of the bot owner, He/she can be abled to access bot in bot only mode too(private mode).
AUTH_CHANNEL Authorized Chats Your Group Chats ID True Create a Super Group in Telegram, add @RIRURU_ROBOT to the group, and send /id in the chat, to get this value.

Optional Configuration Variables--Not Mandatory

Optional Configuration Variables Descripion
DOWNLOAD_LOCATION dev
MAX_FILE_SIZE useless
TG_MAX_FILE_SIZE max file size limit for Telegram Upload .. value should be in bytes like 2000000000
FREE_USER_MAX_FILE_SIZE useless
MAX_TG_SPLIT_FILE_SIZE max file size limit for Telegram Upload in Splitting.. Like If you send 10gb file it will send in 2gb pieces..value should be in bytes like 2000000000
CHUNK_SIZE dev default value is 128
MAX_MESSAGE_LENGTH dev
PROCESS_MAX_TIMEOUT dev
ARIA_TWO_STARTED_PORT should be an integer. The port on which aria2c daemon must start, and keep listening ..default is port 6800
EDIT_SLEEP_TIME_OUT should be an integer. Number of seconds to wait before editing a message.
MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START should be an integer. Number of seconds to wait before cancelling a torrent.
FINISHED_PROGRESS_STR change the progress bar
UN_FINISHED_PROGRESS_STR change the progress bar
TG_OFFENSIVE_API dev
CUSTOM_FILE_NAME custom filename for every single files or folders on leeching completion...
LEECH_COMMAND custom command for /leech
YTDL_COMMAND custom command for /ytdl
GYTDL_COMMAND custom command for /gytdl
GLEECH_COMMAND custom command for /gleech
TELEGRAM_LEECH_COMMAND custom command for /tleechzip
TELEGRAM_LEECH_UNZIP_COMMAND custom command for /tleechunzip
PYTDL_COMMAND custom command for /pytdl
CLONE_COMMAND_G custom command for /gclone
UPLOAD_COMMAND custom command for /upload
RENEWME_COMMAND custom command for /renewme
SAVE_THUMBNAIL custom command for /savethumbnail
CLEAR_THUMBNAIL custom command for /clearthumbnail
GET_SIZE_G custom command for /getsize
UPLOAD_AS_DOC Takes two option True or False. If True file will be uploaded as document. This is for people who wants video files as document instead of streamable.
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.
DESTINATION_FOLDER Name of your folder in ur respective drive where you want to upload the files using the bot.
RENAME_COMMAND Custom Rename Command Which should Be Set Via Vars Default is /rename
TOGGLE_VID Custom Cmd for TOGGLE_DOC default is /togglevid
TOGGLE_DOC Custom Cmd for TOGGLE_DOC default is /toggledoc
RCLONE_COMMAND Custom command for /rclone
LOG_COMMAND Custom command for /log
HELP_COMMAND Custom command for /help

Set Rclone

  1. Set Rclone locally by following the official repo : https://rclone.org/docs/
  2. Get your rclone.conf file. will look like this
[NAME]
type = 
scope =
token =
client_id = 
client_secret = 

2 Copy rclone.conf file in the root directory (Where Dockerfile exists).

3 Your config can contains multiple drive entries.(Default: First one and change using /rclone command)


Available Commands For The BOT

Available BOT Commands Usage
/rclone This will change your drive config on fly.(First one will be def /gclone..This command is used to clone gdrive files or folder using gclone.-Syntax- [ID of the file or folder][one space][name of your folder only(If the id is of file, don't put anything)] and then reply /gclone to it.\
/log This will send you a txt file of the logs.
/ytdl This command should be used as reply to a supported link
/pytdl This command will download videos from youtube playlist link and will upload to telegram.
/gytdl This will download and upload to your cloud.
/gpytdl This download youtube playlist and upload to your cloud.
/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
/leechzip 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 cloud using rclone.
/gleechzip This command will compress the folder/file and will upload to your cloud.
/leechunzip This will unarchive file and dupload to telegram.
/gleechunzip This will unarchive file and upload to cloud.
/tleech This will mirror the telegram files to ur respective cloud cloud.
/tleechunzip This will unarchive telegram file and upload to cloud.
/getsize This will give you total size of your destination folder in cloud.
/renewme This will clear the remains of downloads which are not getting deleted after upload of the file or after /cancel command.
/rename u can add custom name as prefix of the original file name...Like if your file name is gk.txt uploaded will be what u add in CUSTOM_FILE_NAME + gk.txt..And also added custom name like...You have to pass link as ..www.download.me/gk.txt new.txt..the file will be uploaded as new.txt.
/toggledoc it used for toggling to be files if shall it be uploaded as doc via direct inchat cmd...any users can now choose if their files will be upload as doc or streamabe...
/togglevid it used for toggling to be files if shall it be uploaded as vid via direct inchat cmd...any users can now choose if their files will be upload as doc or streamabe...

END OF Variable Explanations 👆


🔧 Commands to be set via Botfather (will only work if you set mentions from custom cmds).

 gclone - This command is used to clone gdrive files or folder using gclone
 ytdl - This command should be used as reply to a supported link
 pytdl - This command will download videos from youtube playlist link and will upload to telegram.
 gytdl - This will download and upload to your cloud.
 gpytdl - This download youtube playlist and upload to your cloud.
 leech - leech any torrent/magnet/direct-download link to Telegram
 leechzip - leech any torrent/magnet/direct-download link to Telegram and Upload It as .tar.gz acrhive...
 gleech - leech any torrent/magnet/direct-download link to cloud
 gleechzip - leech any torrent/magnet/direct-download link to Cloud and Upload It as .tar.gz acrhive...
 leechunzip - This will unarchive file and upload to telegram.
 gleechunzip - This will unarchive file and upload to cloud.
 tleech - This will mirror the telegram files to ur respective cloud .
 tleechunzip - This will unarchive telegram file and upload to cloud.
 getsize - This will give you total size of your destination folder in cloud.
 rename - rename the file
 toggledoc - choose whether the file shall be uploaded as doc or not
 togglevid - choose whether the file shall be uploaded as streamable or not	 
 help - send help 
 renewme - clear all downloads (admin only)⚠️
 log - This will send you a txt file of the logs.(admin only)⚠️
 rclone - This will change your drive config on fly.(First one will be default)--(admin only)⚠️

How to Use?

send any one of the available command, as a reply to a valid link/magnet/torrent.

Credits, and Thanks to

  • HM_MODS FOR CREATING
Owner
αвιנтн
αвιנтн
A Bot For Streaming Videos In Tg Voice Chats.

「•ᴍɪsᴇʀʏ ᴠɪᴅᴇᴏ sᴛʀᴇᴀᴍᴇʀ•」 ᴀ ғɪɴᴇ & ғɪʀsᴛ ᴄʟᴀss ᴘʀᴏᴊᴇᴄᴛ ғᴏʀ ᴘʟᴀʏɪɴɢ ᴠɪᴅᴇᴏs ɪɴ ᴠᴏɪᴄᴇ ᴄʜᴀᴛ ʙʏ xᴇʙᴏʀɴ | •ᴘᴏᴡᴇʀᴇᴅ ʙʏ ᴛɢᴄᴀʟʟs and ᴘʏʀᴏ •ᴅᴇᴘʟᴏʏ ᴍɪsᴇʀʏ ᴛᴏ ʜᴇʀ

Turdus Maximus 22 Nov 12, 2022
Simple Discord bot for the Collectez community.

Harvey - Discord Bot Simple Discord bot for the Collectez community. Features Ping the current status of Collectez's Teztools node. Steal emojis from

delintkhaum 1 Dec 26, 2021
Visual Weather api. Returns beautiful pictures with the current weather.

VWapi Visual Weather api. Returns beautiful pictures with the current weather. Installation: sudo apt update -y && sudo apt upgrade -y sudo apt instal

Hotaru 33 Nov 13, 2022
可基于【腾讯云函数】/【GitHub Actions】/【Docker】的每日签到脚本(支持多账号使用)签到列表: |爱奇艺|全民K歌|腾讯视频|有道云笔记|网易云音乐|一加手机社区官方论坛|百度贴吧|Bilibili|V2EX|咔叽网单|什么值得买|AcFun|天翼云盘|WPS|吾爱破解|芒果TV|联通营业厅|Fa米家|小米运动|百度搜索资源平台|每日天气预报|每日一句|哔咔漫画|和彩云|智友邦|微博|CSDN|王者营地|

每日签到集合 基于【腾讯云函数】/【GitHub Actions】/【Docker】的每日签到脚本 支持多账号使用 特别声明: 本仓库发布的脚本及其中涉及的任何解锁和解密分析脚本,仅用于测试和学习研究,禁止用于商业用途,不能保证其合法性,准确性,完整性和有效性,请根据情况自行判断。

87 Nov 12, 2022
eBay Scraper Homework 3 With Python

eBay Scraper Homework 3 Description of Code My ebay-dl.py file is programmed with python to download 6 key pieces of information - name, if there are

1 Nov 10, 2021
2b2t Priority queue discord bot announcer

2b2t Priority queue discord bot announcer Commands !prioq - Checks the priority queue length and sends it. !start - Starts a loop that sends the sta

Gumi 5 Jun 06, 2022
GBSLocalLauncher - A script to compose ENV file for Local Compose

GBSLocalLauncher This is a script to compose ENV file for Local Compose. It crea

2 Jan 27, 2022
Semplice pagina di informazione per sapere se e quando è uscito Joypad, il podcast a tema videoludico di Matteo Bordone (Corri!), Francesco Fossetti (Salta!) e Alessandro Zampini (Spara! per finta).

È uscito Joypad? Semplice pagina di informazione per sapere se e quando è uscito Joypad, il podcast a tema videoludico di Matteo Bordone (Corri!), Fra

Paolo Donadeo 32 Jan 02, 2023
A pixeldrain python package using pixeldrain official api

Made with Python3 (C) @FayasNoushad Copyright permission under MIT License License - https://github.com/FayasNoushad/Pixeldrain/blob/main/LICENSE In

Fayas Noushad 6 Jan 26, 2022
An open source raffle bot made to increase the chance of winning limited sneaker raffles by automating entries.

🚀 SyneziaRaffles An open source raffle bot made to increase the chance of winning limited sneaker raffles by automating entries. 🏄‍♂️ Quick Start Pr

Alexis M. 29 Dec 22, 2022
Latest Open Source Code for Playing Music in Telegram Video Chat. Made with Pyrogram and Pytgcalls 💖

MusicPlayer_TG Latest Open Source Code for Playing Music in Telegram Video Chat. Made with Pyrogram and Pytgcalls 💖 Requirements 📝 FFmpeg NodeJS nod

Abhijith Sudhakaran 2 Feb 04, 2022
an OSU! bot sdk based on IRC

osu-bot-sdk an OSU! bot sdk based on IRC Start! The following is an example of event triggering import osu_irc_sdk from osu_irc_sdk import models bot

chinosk 2 Dec 16, 2021
The raid botnet for Telegram

telegram-raid-botnet The raid botnet for Telegram Что нужно сделать перед запуском? Установить модули pip3 install -r requirements.txt Добавить аккаун

Maxim 68 Jan 03, 2023
A Python API to retrieve and read MLB GameDay data

mlbgame mlbgame is a Python API to retrieve and read MLB GameDay data. mlbgame works with real time data, getting information as games are being playe

Zach Panzarino 493 Dec 13, 2022
The records of 42 million users from a third-party version of the popular Telegram messaging app have just been Iranian accounts leaked

TelegramDatabase About The records of 42 million users from a third-party version of the popular Telegram messaging app have just been Iranian account

Hamed Mohammadvand 10 Jan 14, 2022
Based Telegram Bot and Userbot To Play Music in Your Telegram Groups With Some Cool Extra Features! 🥰

CallMusicPlus69 This Repo base on! 🤗️ A CallsMusic Based Telegram Bot and Userbot To Play Music in Your Telegram Groups With Some Cool Extra Features

brut✘⁶⁹ // ユスフ 6 Jun 26, 2022
A secure and customizable bot for controlling cross-server announcements and interactions within Discord

DiscordBot A secure and customizable bot for controlling cross-server announcements and interactions within Discord. Within the code of the bot, you c

Jacob Dorfmeister 1 Jan 22, 2022
A simple Telegram bot, written in Python, that you can use to shill (i.e. send messages) your token, or whatever, to channels.

Telegram Shill Bot Ever wanted a Shill Bot but wankers keep scamming for one OR wanted to charge you an arm and a leg? This is a simple bot written in

53 Nov 25, 2022
Recommended AWS CDK project structure for Python applications

Recommended AWS CDK project structure for Python applications The project implements a user management backend component that uses Amazon API Gateway,

AWS Samples 110 Jan 06, 2023
Check AWS S3 instances for read/write/delete access

s3sec Test AWS S3 buckets for read/write/delete access This tool was developed to quickly test a list of s3 buckets for public read, write and delete

0xmoot 114 Dec 06, 2022