VPS / Terminal Setup
Simple numbered steps. Every command is copyable. Just paste and go — no terminal knowledge needed.
Before You Start — Get These Values Ready
Have these values copied before starting Step 3 — you will need to paste them into the .env file.
| Variable | Where to Get It | Required? |
|---|---|---|
API_ID | my.telegram.org → API Dev Tools | Required |
API_HASH | my.telegram.org → API Dev Tools | Required |
ELITE_SESSION | @elite_session_maker_bot on Telegram | Required |
LOG_CHAT_ID | Your private channel ID (starts with -100) | Optional |
SUDO_USERS | Your Telegram user ID (get from @userinfobot) | Optional |
Ubuntu / Debian VPS — Step by Step
Bot is Running!
After pressing Ctrl+B → D to detach, you can safely close your terminal. Bot stays live 24/7.
Tmux Keys — Quick Reference
Ctrl+B → DDetach (bot keeps running in background)
tmux attach -t cipherCome back to check your bot logs
Ctrl+CStop the bot (inside tmux session)
tmux lsSee all running sessions
tmux kill-session -t cipherStop bot and delete session
Termux (Android) — Same Steps, Different Commands
Termux uses pkg instead of apt. Same idea — just copy and paste each one.
⚠️ On Termux, disable battery optimization for the Termux app so Android doesn't kill it. Settings → Apps → Termux → Battery → Unrestricted.
Something Wrong? Fix It Here
❌ ModuleNotFoundError: No module named 'telethon'
✅ Fix — run this:
pip3 install telethon
❌ Bot stops when SSH disconnects
✅ Fix — run this:
tmux new -s cipher
❌ Permission denied on pip3
✅ Fix — run this:
pip3 install --user -r requirements.txt
❌ AUTH_KEY_UNREGISTERED / session not working
✅ Fix — run this:
# Get a new ELITE_SESSION from @elite_session_maker_bot
🔒 Security Reminder
Never push your .env file to GitHub. It contains your ELITE_SESSION which gives full access to your Telegram account. It is already in .gitignore — but double check before every push.