{"id":26541479,"url":"https://github.com/thiruxd/thiru-ml","last_synced_at":"2025-09-11T11:46:37.335Z","repository":{"id":243182824,"uuid":"805023622","full_name":"ThiruXD/Thiru-ML","owner":"ThiruXD","description":"An Telegram bot which can download torrents, mega, google drive links, telegram file, direct links and all yt-dlp sites, upload to google drive, telegram cloud, rclone clouds or ddl servers. Made with Pyrogram in Python by Thiru Empire.","archived":false,"fork":false,"pushed_at":"2024-06-07T06:57:57.000Z","size":312,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T19:21:10.266Z","etag":null,"topics":["auto-leech-bot","flask","heroku","leech-bot","magnet-link","mirror-bot","mongodb","pyrogram","python","thiruempire","thiruxd","torrent","yt-dlp"],"latest_commit_sha":null,"homepage":"https://telegram.me/ThiruEmpire","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThiruXD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-23T18:24:04.000Z","updated_at":"2024-12-31T06:27:37.000Z","dependencies_parsed_at":"2024-06-07T07:46:33.457Z","dependency_job_id":null,"html_url":"https://github.com/ThiruXD/Thiru-ML","commit_stats":null,"previous_names":["thiruxd/thiru-ml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThiruXD/Thiru-ML","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiruXD%2FThiru-ML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiruXD%2FThiru-ML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiruXD%2FThiru-ML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiruXD%2FThiru-ML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThiruXD","download_url":"https://codeload.github.com/ThiruXD/Thiru-ML/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiruXD%2FThiru-ML/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265026236,"owners_count":23699915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-leech-bot","flask","heroku","leech-bot","magnet-link","mirror-bot","mongodb","pyrogram","python","thiruempire","thiruxd","torrent","yt-dlp"],"created_at":"2025-03-22T01:35:51.539Z","updated_at":"2025-07-12T17:37:49.631Z","avatar_url":"https://github.com/ThiruXD.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n\n# 𝗡𝗼𝘄 𝗧𝗵𝗶𝗿𝘂-𝗠𝗟 𝗶𝘀 𝗛𝗲𝗿𝗼𝗸𝘂 𝗗𝗲𝗽𝗹𝗼𝘆𝗮𝗯𝗹𝗲\n\n\u003cp\u003e\n    \u003ca href=\"https://github.com/ThiruXD/Thiru-ML\"\u003e\n      \u003ckbd\u003e\n            \u003cimg src=\"https://telegra.ph/file/de3725a58014b199a959a.jpg\" width=\"550\" alt=\"ThiruEmpire Thum\"\u003e\n      \u003c/kbd\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\n## Deploy On Heroku\n\n[![Deploy on Heroku](https://www.herokucdn.com/deploy/button.svg)](https://dashboard.heroku.com/new?template=https://github.com/ThiruXD/Thiru-ML)\n\n\u003c/div\u003e\n\n---\n\n## ***Heroku CLI Guide***\n\n**Step 1 :** Git clone this Repo and change directory\n\u003e Make sure git is Installed in your system or quick run `apt-get install git pip curl -y`\n\n```shell\ngit clone https://github.com/ThiruXD/Thiru-ML \u0026\u0026 cd Thiru-ML \n```\n\n**Step 2 :** Now Install Heroku in your Sytem or checkout Official Heroku Deploy Docs, or Download via `apt-get` or `npm`\n\u003e For Android : Use `termux` (Download via FDroid) for CLI usage\n\n**The script requires sudo and isn’t Windows compatible.**\n```shell\ncurl https://cli-assets.heroku.com/install.sh | sh\n```\n\n**Install with Ubuntu / Debian apt-get**\n```shell\ncurl https://cli-assets.heroku.com/install-ubuntu.sh | sh\n```\n\n**Install via `npm` (Not Recommanded)**\n```shell\nnpm install -g heroku\n```\n\n**Official Heroku Install Guide :** [Check Here](https://devcenter.heroku.com/articles/heroku-cli#install-the-heroku-cli)\n\n**Step 3 :** Login into Heroku and Log In CLI via Browser \n\n_With Browser_\n```shell\nheroku login\n```\n\n**OR**\n\n_Without Browser_\n```shell\nheroku login -i\n```\n\n- Put `Heroku Email` : Heroku Email `email@example.com`\n- Put `Heroku Password` : Heroku API Key. Get from [Here](https://dashboard.heroku.com/account)\n\n**Step 4 :** Create Heroku App and specify stack and region with App Name\n\n```shell\nheroku create --region us --stack container APP_NAME\n```\n\n**To Be Noted**: Copy the `BASE_URL` after the App is Created and Put the Value in `BASE_URL` when editing `config.env`\n\n**Notes:**\n- `--region us` for United States Server.\n- `--region eu` for Europe Server.\n- `APP_NAME` should be replaced with your unique app name _(Optional)_. If not given it generates a random name.\n- `--stack container` for setting stack to container for Dockerfile.\n- `--buildpack heroku/python` for using build slug for repo deploy and build.\n\n**Step 5 :** Now set all the Required Variables and Files into this Branch MAIN Repo like config.env, accounts.zip, token.pickle, All Private Files(optional)- \n  \u003e Only config.env Mabdatory with Only Mandatory Vars Only, After that Put all Private Files or Vars via Bot Settings `/bs`\n\n**To Edit Inside CLI (nano Editor):** _(Termux Users)_\n```shell\nnano config.env\n```\n- **Sample config.env** _(Copy these and Paste in Editor and Fill Up)_\n  ```\n  BOT_TOKEN = \"\"\n  TELEGRAM_API = \"\"\n  TELEGRAM_HASH = \"\"\n  OWNER_ID = \"\"\n  DATABASE_URL = \"\"\n  BASE_URL = \"\"\n  SET_COMMANDS = \"True\"\n  UPSTREAM_REPO = \"https://github.com/ThiruXD/Thiru-ML\"\n  UPSTREAM_BRANCH = \"hk_thiruml\"\n  ```\n- After Setup Exit from Editor via `CTRL + X`, followed via `y` and `Enter`...\n\n**Helpful Commands:**\n- **Exit from nano** : `CTRL + X`\n- **Save File** : `CTRL + S`\n- **Check Help** : `CTRL + G`\n- **Undo Changes** : `ALT + U`\n- ^ means CTRL _(Termux Users)_\n\n**Step 6 :** Set Local git remote for Heroku. Give All Commands One by One.\n\n```shell\ngit add . -f\ngit commit -m \"HK Setup\"\nheroku git:remote -a APP_NAME\n```\n\n**Step 7 :** Now push to Heroku via git forcefully to build.\n\n```shell\ngit push heroku main -f\n```\n\n**Heroku Logs:** When checking Logs, Use this will give Complete Logs.\n```shell\nheroku logs -a APP_NAME\n```\n\n- Add arg `-t` for Live Stream Logs and Use `CTRL + C` to Exit from it.\n\n**All Heroku CLI Commands :** [Click Here](https://devcenter.heroku.com/articles/heroku-cli-commands#heroku-config-set)\n\n---\n\n## ***Variables Description:***\n\n- `UPSTREAM_REPO`: GitHub repository URL, if your repo is private add `https://username:{githubtoken}@github.com/{username}/{reponame}`. `Str`\n- Any change in docker you need to deploy/build again with updated repo to take effect. \n              - **No Need to delete .gitignore file or any File**\n- `UPSTREAM_BRANCH`: Upstream branch for update. Default is `hk_thiruml`. `Str`\n- `BOT_TOKEN`: Telegram Bot Token that you got from [BotFather](https://t.me/BotFather). `Str`\n- `OWNER_ID`: Telegram User ID (not username) of the Owner of the bot. `Int`\n- `TELEGRAM_API`: This is to authenticate your Telegram account for downloading Telegram files. You can get this from \u003chttps://my.telegram.org\u003e. `Int`\n- `TELEGRAM_HASH`: This is to authenticate your Telegram account for downloading Telegram files. You can get this from \u003chttps://my.telegram.org\u003e. `Str`\n- `BASE_URL`: Valid BASE URL where the bot is deployed to use torrent web files selection. Format of URL should be `https://app-name-random_code.herokuapp.com/`, where `app-name` is the name of your heroku app Paste the URL got when the App was Made. `Str`\n- `TORRENT_TIMEOUT`: Timeout of dead torrents downloading with qBittorrent and Aria2c in seconds. `Int`\n  \u003e Must Add else Bot Crashes! Set to 0 even not Needed\n- `DATABASE_URL`: Database URL of MongoDb to store all your files and Vars. Adding this will be Helpful. `Str`\n\n---\n\n## ***Branch Specifications:***\n\n- All files to be Uploaded in `main` Branch and set Upstream as `hk_thiruml` Branch\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiruxd%2Fthiru-ml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiruxd%2Fthiru-ml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiruxd%2Fthiru-ml/lists"}