Deployment
There are two main ways to run WZML-X. Pick the one that suits you.
- VPS / Dedicated Server (recommended) — full control, no restrictions
- Heroku (via WZ-Deploy) — easier setup, some limitations
Prerequisites (same for both)
Get these ready first — you'll need them no matter which option you choose.
1. Create a Telegram Bot
- Open Telegram, search for @BotFather
- Send
/newbot, pick a name and username - Save the token (looks like
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11)
2. Get your Telegram API credentials
- Go to my.telegram.org/apps and log in
- Copy your App api_id (number) and App api_hash (string)
3. Get your User ID
- Talk to @userinfobot on Telegram
- Send
/start— it replies with your ID (a number like123456789)
4. Create a MongoDB database
- Sign up at MongoDB Atlas (free tier is enough)
- Create a free M0 cluster
- Database Access → Add a user (save the username + password)
- Network Access → Add IP
0.0.0.0/0 - Databases → Connect → Connect your application
- Copy the connection string:
mongodb+srv://<user>:<password>@cluster0.xxxxx.mongodb.net/?retryWrites=true&w=majority - Replace
<user>and<password>
- Copy the connection string:
Pick your path: