Advanced Telegram music player bot built with Pyrogram + Py-TgCalls. Supports YouTube, Spotify, Apple Music, SoundCloud, Resso, and Telegram audio.
- High-quality voice/video chat streams
- Playlist support (YouTube, Spotify, Apple Music)
- Multi-language strings (
strings/langs/) - Admin controls: skip, pause, resume, loop, seek, speed, shuffle, stop
- Broadcast, autoleave, watcher, seeker
- Auto-update from upstream repo
- Python 3.10+
- ffmpeg
- MongoDB cluster (free tier works — https://cloud.mongodb.com)
- Telegram bot token (@BotFather)
- Pyrogram v2 string session (@StringFatherBot) for the assistant account
git clone https://github.com/rajasharmajii566-dev/ZallyMusicBot.git
cd ZallyMusicBot
cp .env.example .env
# Edit .env with your values
pip install -r requirements.txt
bash start- Fork or clone this repo to your GitHub
- Create a new project on https://railway.app → Deploy from GitHub repo
- In the Variables tab, paste these (one per line in Raw Editor):
API_ID=
API_HASH=
BOT_TOKEN=
LOGGER_ID=
MONGO_DB_URI=
OWNER_ID=
STRING_SESSION=
Important notes for Railway variables:
API_ID— numeric only, no quotesLOGGER_ID— must start with-100for supergroups/channels (e.g.-1001234567890)OWNER_ID— your numeric Telegram user idMONGO_DB_URI— fullmongodb+srv://...stringSTRING_SESSION— long Pyrogram v2 string
- Railway auto-detects the
Dockerfileand starts the worker. Watch the deploy logs — you should see "PritiMusic" startup banner.
Click the deploy button (after configuring app.json heroku button) or:
heroku create your-app-name --stack container
git push heroku main
heroku config:set API_ID=... API_HASH=... BOT_TOKEN=... ...docker build -t zallymusicbot .
docker run -d --env-file .env --name zally zallymusicbotPritiMusic/
├── core/ # bot, userbot, mongo, call manager, git auto-update
├── platforms/ # YouTube, Spotify, Apple, SoundCloud, Resso, Telegram, Carbon
├── plugins/ # admins, bot, misc, play, sudo, tools commands
├── utils/ # decorators, helpers, queue, formatters
└── logging.py
strings/langs/ # Multi-language UI text
config.py # Env-driven config
Dockerfile # nikolaik/python-nodejs:3.10 + ffmpeg
start # bash start → python3 -m PritiMusic
.envis.gitignored — never commit it- All secrets must be set via environment variables
- Rotate
BOT_TOKENandSTRING_SESSIONif leaked
Original codebase: PritiMusic / LuckyX team. Re-packaged for clean deployment.