VPS / Dedicated Server
Prerequisites
Make sure you have the prerequisites ready before starting (BotFather token, api_id, api_hash, user ID, MongoDB URL).
Step 1: Install Docker on your server
bash
curl -fsSL https://get.docker.com | shVerify: docker --version
Step 2: Clone and configure
bash
git clone -b wzv3 https://github.com/SilentDemonSD/WZML-X.git
cd WZML-X
cp config_sample.py config.pyFill in at minimum these 5 values:
python
BOT_TOKEN = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
OWNER_ID = 123456789
TELEGRAM_API = 12345
TELEGRAM_HASH = "abc123def456..."
DATABASE_URL = "mongodb+srv://admin:password@cluster0.xxxxx.mongodb.net/?retryWrites=true&w=majority"Step 3: Start the bot
bash
docker buildx compose up -dWait 1-2 minutes. Check it's running:
bash
docker compose ps # both app and tunnel should show "Up"
docker compose logs app --tail 10Get your web UI URL:
bash
docker compose logs tunnelLook for https://abc123.trycloudflare.com — that's your web UI.
Step 4: Talk to your bot
Open Telegram, find your bot, send /start, then /help, then try a mirror.
Updating
bash
docker compose down
docker compose pull
docker compose up -dStopping
bash
docker compose down
docker image prune -a # optional: clean up old images(Optional) Run with VPN
- Uncomment the
gluetunsection indocker-compose.yml - Fill in your VPN provider details
- Uncomment
network_mode: "service:gluetun"on theappservice - Run
docker buildx compose up -d
(Optional) Run multiple bots
- Create
config2.pywith different credentials - Uncomment
app2andtunnel2indocker-compose.yml - Run
docker buildx compose up -d