GNU General Public License v3.0

项目介绍

Tamilupdates/KPSML-X 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 GNU General Public License v3.0 许可证,目前获得 102 个 Star、148 次 Fork。

仓库全名
Tamilupdates/KPSML-X
开源许可证
GNU General Public License v3.0
Star 数
102
Fork 数
148

README 摘要

KPSML-X: Ultimate Multi-Cloud Telegram Leech Bot ⚡️ Download Anything. Upload Everywhere. 🔥 Google Colab : Deploy Link 📌 Key Highlights View All Highlights Click Here KPSML-X is designed to make file management seamless, fast, and flexible. 🌐 Universal Downloader - Supports torrents, Mega, Google Drive, direct links, and all yt-dlp sites. ☁️ Cloud Uploader - Upload files to Google Drive, Telegram Cloud, Rclone,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

KPSML-X 用什么语言开发?

主要使用 Python 编写,采用 GNU General Public License v3.0 许可证,目前有 102 个 Star。

KPSML-X 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 KPSML-X 的源码?

可以直接克隆仓库:git clone https://github.com/Tamilupdates/KPSML-X.git,默认分支为 main;安装与运行步骤见仓库 README。

KPSML-X 最近还在维护吗?

仓库最近一次更新为 8月31日,当前没有未关闭的 Issue;Star 数为 102,可作为社区活跃度的参考。

关于

A Super Enhanced 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 KPSML-X Devs.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
401
价值分
105
活跃状态
活跃

语言占比

Dockerfile
Python
Shell

贡献者

README

KPSML-X: Ultimate Multi-Cloud Telegram Leech Bot

KPSML-X Logo

Forks Stars Docker Pulls

Telegram Channel

⚡️ Download Anything. Upload Everywhere. 🔥

Google Colab Logo Google Colab : Deploy Link


📌 Key Highlights

View All Highlights Click Here

KPSML-X is designed to make file management seamless, fast, and flexible.

  • 🌐 Universal Downloader - Supports torrents, Mega, Google Drive, direct links, and all yt-dlp sites.

  • ☁️ Cloud Uploader - Upload files to Google Drive, Telegram Cloud, Rclone, or DDL servers with ease.

  • 📦 Smart File Handling - Automatic renaming, metadata tagging, and organization.

  • 🧠 Intelligent Automation - Auto-resume, retry, and cleanup for 24×7 reliability.

  • ⚙️ Advanced Controls - Manage downloads, uploads, and settings directly from Telegram (/bs, /mirror, /leech).

  • 🎯 Multi-Deployment Ready - Deploy on Heroku, Docker, VPS, or Google Colab.

  • 🔐 Secure & Private - Owner-only commands, user whitelisting, and access control.

  • 💨 Lightweight Performance - Optimized Python & Pyrogram async engine for speed.

  • 💬 Active Community Support - Join @KPSBots for updates and help.


🚀 Deployment Guide (VPS)

View All Steps Click Here

1. Prerequisites

  • Tutorial Video from A to Z (Latest Video)
  • Special thanks to Wiszky

See Video


2. Installing Requirements

Clone this repository:

git clone https://github.com/Tamilupdates/KPSML-X kpsml-x && cd kpsml-x

Setting up config file:

cp config_sample.env config.env
  • Remove the first line saying:
_____REMOVE_THIS_LINE_____=True

Fill up rest of the fields. Meaning of each field is discussed below.

NOTE: All values must be filled between quotes, even if it’s Int, Bool or List.


3. Build and Run the Docker Image

Make sure you mount the app folder and install Docker following the official documentation.

There are two methods to build and run the Docker image:

3.1 Using Official Docker Commands

  • Start Docker daemon (skip if already running):

    sudo dockerd
    
  • Build the Docker image:

    sudo docker build . -t kpsmlx
    
  • Run the image:

    sudo docker run -p 80:80 -p 8080:8080 kpsmlx
    
  • To stop the running image:

    First, list running containers:

    sudo docker ps
    

    Then, stop the container using its ID:

    sudo docker stop <container_id>
    

Note: If you want to use ports other than 80 and 8080 for torrent file selection and rclone serve respectively, update them in docker-compose.yml.

  • Install docker-compose:

    sudo apt install docker-compose
    
  • Build and run the Docker image (or view the current running image):

    sudo docker-compose up
    
  • After editing files (e.g., using nano to edit start.sh), rebuild:

    sudo docker-compose up --build
    
  • To stop the running image:

    sudo docker-compose stop
    
  • To restart the image:

    sudo docker-compose start
    
  • To view the latest logs from the running container (after mounting the folder):

    sudo docker-compose up
    
  • Tutorial Video for docker-compose and checking ports:

    See Video


Docker Notes

IMPORTANT NOTES:

  1. Set BASE_URL_PORT and RCLONE_SERVE_PORT variables to any port you want to use. Default is 80 and 8080 respectively.
  2. You should stop the running image before deleting the container and you should delete the container before the image.
  3. To delete the container (this will not affect on the image):
sudo docker container prune
  1. To delete te images:
sudo docker image prune -a
  1. Check the number of processing units of your machine with nproc cmd and times it by 4, then edit AsyncIOThreadsCount in qBittorrent.conf.

🚀 Deployment Guide (Heroku CLI)

View All Steps Click Here

Step 1 : Git clone this Repo and change directory

Make sure git is Installed in your system or quick run apt-get install git pip curl -y

git clone https://github.com/Tamilupdates/KPSML-X kpsml-x && cd kpsml-x 

Step 2 : Now Install Heroku in your Sytem or checkout Official Heroku Deploy Docs, or Download via apt-get or npm

For Android : Use termux (Download via FDroid) for CLI usage

The script requires sudo and isn’t Windows compatible.

curl https://cli-assets.heroku.com/install.sh | sh

Install with Ubuntu / Debian apt-get

curl https://cli-assets.heroku.com/install-ubuntu.sh | sh

Install via npm (Not Recommanded)

npm install -g heroku

Official Heroku Install Guide : Check Here


Step 3 : Login into Heroku and Log In CLI via Browser

With Browser

heroku login

OR

Without Browser

heroku login -i

Step 4 : Create Heroku App and specify stack and region with App Name

heroku create --region us --stack container APP_NAME

To Be Noted: Copy the BASE_URL after the App is Created and Put the Value in BASE_URL when editing config.env

Notes:

  • --region us for United States Server.

  • --region eu for Europe Server.

  • APP_NAME should be replaced with your unique app name (Optional). If not given it generates a random name.

  • --stack container for setting stack to container for Dockerfile.

  • --buildpack heroku/python for using build slug for repo deploy and build.


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)-

Only config.env Mabdatory with Only Mandatory Vars Only, After that Put all Private Files or Vars via Bot Settings /bs

To Edit Inside CLI (nano Editor): (Termux Users)

nano config.env
  • Sample config.env (Copy these and Paste in Editor and Fill Up)
    BOT_TOKEN = ""
    TELEGRAM_API = ""
    TELEGRAM_HASH = ""
    OWNER_ID = ""
    DATABASE_URL = ""
    BASE_URL = ""
    SET_COMMANDS = "True"
    UPSTREAM_REPO = "https://github.com/Tamilupdates/KPSML-X"
    UPSTREAM_BRANCH = "kpsmlx"
    
  • After Setup Exit from Editor via CTRL + X, followed via y and Enter…

Helpful Commands:

  • Exit from nano : CTRL + X
  • Save File : CTRL + S
  • Check Help : CTRL + G
  • Undo Changes : ALT + U
  • ^ means CTRL (Termux Users)

Step 6 : Set Local git remote for Heroku. Give All Commands One by One.

git add . -f
git commit -m "HK Setup"
heroku git:remote -a APP_NAME

Step 7 : Now push to Heroku via git forcefully to build.

git push heroku main -f

Heroku Logs: When checking Logs, Use this will give Complete Logs.

heroku logs -a APP_NAME
  • Add arg -t for Live Stream Logs and Use CTRL + C to Exit from it.

All Heroku CLI Commands : Click Here


🛠️ Variables Descriptions

View All Variables Click Here
  • BOT_TOKEN: Telegram Bot Token that you got from BotFather. Str

  • OWNER_ID: Telegram User ID (not username) of the Owner of the bot. Int

  • TELEGRAM_API: This is to authenticate your Telegram account for downloading Telegram files. You can get this from https://my.telegram.org. Int

  • TELEGRAM_HASH: This is to authenticate your Telegram account for downloading Telegram files. You can get this from https://my.telegram.org. Str

  • BASE_URL: Valid BASE URL where the bot is deployed to use torrent web files selection.

    • Heroku Deployment: 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

    • VPS Deployment: Format of URL should be http://myip, where myip is the IP/Domain(public) of your bot or if you have chosen port other than 80 so write it in this format http://myip:port (http and not https). Str

  • DATABASE_URL: Database URL of MongoDb to store all your files and Vars. Adding this will be Helpful. Str

  • UPSTREAM_REPO: GitHub repository URL, if your repo is private add https://username:{githubtoken}@github.com/{username}/{reponame} format. Str.

    • NOTE:
      • Any change in docker you need to deploy/build again with updated repo to take effect.
      • No Need to delete .gitignore file or any File
  • UPSTREAM_BRANCH: Upstream branch for update. Default is kpsmlx. Str


🌿 Branch Specifications

  • All files to be Uploaded in main Branch and set Upstream as kpsmlx Branch.
  • View the Upstream Branch: kpsmlx

评论

暂无评论