
Telegram mirroring and leeching platform with a container-based runtime, a lightweight web UI, and a configurable transfer pipeline.
Table of Contents Click Here
| Area | Details |
|---|---|
| Runtime | Python Telegram bot + web UI |
| Deployment | Docker & Docker Compose (buildx) |
| Required config | BOT_TOKEN, TELEGRAM_API, TELEGRAM_HASH, OWNER_ID, DATABASE_URL |
| License | LICENSE |
WZML-X is built for users who want a single bot stack that can mirror, leech, manage files, and expose a simple web-based selection flow without stitching together multiple tools. The README focuses on what you need to deploy it quickly, understand the moving parts, and tune the behavior safely.
| Capability | Outcome |
|---|---|
| Mirroring | Send files to Telegram with a controllable pipeline |
| Leeching | Deliver files in the format you prefer, including document and media workflows |
| File selection UI | Review and select torrent / NZB / upload contents before finalizing |
| Multi-source downloads | Use qBittorrent, Aria2, JDownloader, Mega, NZB, and yt-dlp integrations |
| Storage and upload paths | Push content to Google Drive, Rclone, Mega, and other supported routes |
| Automation | Limit tasks, tune queues, and manage startup updates from one config layer |
Deploy with Docker and provide the required configuration values. The container takes care of the runtime path, so users only need to build or start the image and set their settings.
What you need Click Here
VPS / Dedicated Server (Recommended)
bash
git clone https://github.com/SilentDemonSD/WZML-X.git
cd WZML-X
cp config_sample.py config.py
# Edit config.py with your values
docker buildx compose up -d
The bot runs behind a Cloudflare quick tunnel by default. Check the tunnel URL:
bash
docker compose logs tunnel
You'll see a https://*.trycloudflare.com URL — that's your bot's web UI.
To stop:
bash
docker buildx compose down
VPS with VPN (Gluetun)
gluetun service in docker-compose.ymlnetwork_mode: "service:gluetun" on the app servicebash
docker buildx compose up -d
All traffic (including the cloudflared tunnel) routes through the VPN.
Multi-Instance (Multiple Bots)
Each bot needs its own config.py and data volumes. Example for a second bot:
config2.py with different BOT_TOKEN, OWNER_ID, etc.app2 and tunnel2 in docker-compose.ymlconfig2.py and separate data dirsbash
docker buildx compose up -d
Each bot gets its own cloudflared tunnel URL. Admin ports (qBittorrent, SABnzbd) are mapped to different host ports (127.0.0.1:8091, etc.).
Single Container (Manual)
bash
git clone https://github.com/SilentDemonSD/WZML-X.git
cd WZML-X
docker build -t wzmlx .
docker run -p 8080:8080 wzmlx
Deployment Notes
AsyncIOThreadsCount to your machine size.bash
docker container prune
docker image prune -a
Legacy Workflow Guide
Some users still rely on the external workflow path referenced by the previous README:
Keep this only if that workflow still matches your deployment style.
Start with the required values:
BOT_TOKENTELEGRAM_APITELEGRAM_HASHOWNER_IDDATABASE_URLThen tune the optional behavior from config_sample.py.
Important user-facing settings
| Setting | User impact |
|---|---|
DEFAULT_LANG |
Bot language |
STATUS_LIMIT |
How much status data is shown |
DEFAULT_UPLOAD |
Default upload target |
LEECH_SPLIT_SIZE |
How large leech outputs are split |
QUEUE_ALL, QUEUE_DOWNLOAD, QUEUE_UPLOAD |
Queue pressure and concurrency |
SHOW_CLOUD_LINK |
Whether cloud links are shown to users |
WEB_PINCODE |
Protects web access to file selection |
Integrations available in config
The sample config also covers:
| Path | Purpose |
|---|---|
bot/ |
Bot core, handlers, listeners, and modules |
web/ |
FastAPI app, templates, and the file selector UI |
gen_scripts/ |
Setup helpers for sessions, tokens, and drive configuration |
plugins/ |
Optional bot plugins |
qBittorrent/ |
Default qBittorrent configuration |
sabnzbd/ |
Default SABnzbd configuration |
[!NOTE] This documentation is still being expanded.
docs/config_sample.pyJoin Community
WZML-X is a fork of mirror-leech-telegram-bot. The base project belongs to anasty17 and upstream contributors.
Bot Authors
| Avatar | Name | Role | Profile |
|---|---|---|---|
| SilentDemonSD | Author, UI design, and custom features | GitHub | |
| RjRiajul | Co-author and maintainer | GitHub | |
| CodeWithWeeb | Feature expansion and wrap-up improvements | GitHub | |
| Maverick | Co-author and bug testing | GitHub |
This project is distributed under the terms of the repository license. See LICENSE for the full text.
$ claude mcp add WZML-X \
-- python -m otcore.mcp_server <graph>