This backend is built with Python + Quart and can be deployed to Railway for free.
Follow the steps below to deploy it manually.
- A Railway account (free tier available)
- A GitHub account
- Your Telegram API credentials (
API_ID,API_HASH)
Click the Fork button at the top right of this repo (or fork here)
This gives you your own copy that Railway can access.
- Choose Deploy from GitHub repo.
- Connect your GitHub account (if not already connected).
- Select your forked repository (
zerolimit_backend).
In Railway, open the Variables tab of your project and add:
| Variable | Description |
|---|---|
API_ID |
Your Telegram API ID from my.telegram.org |
API_HASH |
Your Telegram API Hash from my.telegram.org |
Railway detects Python automatically, but verify:
- Start Command:
python login.py
Port: 5000
(Railway sets PORT automatically, so in login.py make sure you bind host=0.0.0.0 and port=5000.)
- Click Deploy.
- Wait for Railway to build and start the container.
- Once running, Railway gives you a public domain like:
https://your-app-name.up.railway.appThis is your backend API URL.
Visit:
https://your-app-name.up.railway.app/ping
If everything is working, you should see a JSON response like:
{ "status": "ok" }
- Free tier gives you 512 MB RAM and 5 GB storage per month.
- For heavy usage or many users, upgrade your plan.
- If deploying for the first time, you will be asked to log in via Telegram in the backend logs.