β‘ Response Speed:
1-2 Seconds| π Uptime:99.9% High Availability| π Audio Quality:Lossless 320kbps + 1080p HD Video
π΅ πΌπππ π·πππππππ πͺππππππ π (Click to Expand)
| Command | Description |
|---|---|
/play <query/link> |
Stream audio in group voice chat. |
/vplay <query/link> |
Stream HD video in group voice chat. |
/cplay <query/link> |
Stream audio in linked channel voice chat. |
/cvplay <query/link> |
Stream video in linked channel voice chat. |
/queue |
View the current queue of upcoming songs. |
/playlist |
View or play your personal saved playlist. |
/lyrics <song name> |
Search and fetch synchronized song lyrics. |
/ping |
Check bot latency, CPU load, and server uptime. |
/stats |
View global bot usage statistics. |
/settings |
Open interactive chat configuration menu. |
/help |
Open the interactive help panel. |
/repo |
Display repository information. |
ποΈ π¨π πππ π½ππππ πͺπππ πͺπππππππ (Click to Expand)
| Command | Description |
|---|---|
/pause |
Temporarily pause current track playback. |
/resume |
Resume playback from paused state. |
/skip |
Skip current track and play next in queue. |
/end or /stop |
Stop playback and clear the active queue. |
/mute |
Mute assistant in the group voice chat. |
/unmute |
Unmute assistant in the group voice chat. |
/seek <seconds> |
Jump forward or backward in active track. |
/speed <0.5x - 2.0x> |
Adjust stream playback speed. |
/loop <1-10 / disable> |
Repeat current track or active queue. |
/shuffle |
Randomize the order of queued tracks. |
π πΊππ π & πΆππππ π΄πππππππππ (Click to Expand)
| Command | Description |
|---|---|
/broadcast <text> |
Broadcast an announcement to all served chats. |
/gban <user_id> |
Global ban malicious users across all bot chats. |
/ungban <user_id> |
Remove global ban from a user ID. |
/restart |
Restart bot and assistant sessions cleanly. |
/update |
Pull and merge latest updates from Git upstream. |
/logs |
Retrieve recent execution error and activity logs. |
π£ πΆππ-πͺππππ π―πππππ π«πππππππππ
β‘ π½πππ π½π·πΊ π«πππππππππ πͺππππππ π (Click Here)
πΉ πΊπππ π: πΌππ πππ & πΌπππππ π πΊπππππ
sudo apt-get update && sudo apt-get upgrade -yπΉ πΊπππ π: πͺππππ π΄πππππΊπ πΉπππππππππ
git clone https://github.com/DevloperSP/MusicSpπΉ πΊπππ π: π¬ππππ πΉπππππππππ π«ππππππππ
cd MusicSpπΉ πΊπππ π: πΉππ π¨ππππππππ πΊππππ π°ππππππππ
bash setupπΉ πΊπππ π: πͺππππππππ π¬ππππππππππ π½ππππππππ
cp sample.env .env && vi .envbash startπ οΈ π΄πππ π«πππππππππ πΆππππππ (Click to Expand)
π³ π«πππππ πͺππππππππ π«πππππππππ
Deploy with containerization using the pre-configured Dockerfile:
# 1. Clone repository
git clone https://github.com/DevloperSP/MusicSp
cd MusicSp
# 2. Setup environment variables
cp sample.env .env
vi .env
# 3. Build Docker container image
docker build -t musicsp .
# 4. Run Docker container in detached mode
docker run -d --name musicsp_bot --env-file .env musicspπ» π΄πππππ π³ππππ / π«ππππππππππ πΊππππ
For local development and testing:
# 1. Clone repository
git clone https://github.com/DevloperSP/MusicSp && cd MusicSp
# 2. Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# 3. Install dependencies
pip install -U pip
pip install -U -r requirements.txt
# 4. Configure .env and run
cp sample.env .env
python3 -m MusicSpβοΈ π¬ππππππππππ π½ππππππππ (πͺππππππππππππ)
π π½πππ ππππ π¬ππππππππππ π½ππππππππ π»ππππ
| Variable | Required | Default | Description |
|---|---|---|---|
API_ID |
Yes | β | Telegram API ID from my.telegram.org. |
API_HASH |
Yes | β | Telegram API Hash from my.telegram.org. |
BOT_TOKEN |
Yes | β | Telegram Bot Token from @BotFather. |
OWNER_ID |
Yes | β | Telegram numeric ID of the bot owner. |
MONGO_DB_URI |
Yes | β | MongoDB Atlas connection URI string. |
LOG_GROUP_ID |
Yes | β | Telegram Private Group ID for logging (e.g., -100xxxxxxx). |
STRING_SESSION |
Yes | β | Pyrogram v2 / Kurigram String Session for Assistant 1. |
STRING_SESSION2 - 5 |
Optional | None |
Multi-assistant string sessions for load balancing. |
SPOTIFY_CLIENT_ID |
Optional | None |
Spotify Developer API Client ID. |
SPOTIFY_CLIENT_SECRET |
Optional | None |
Spotify Developer API Client Secret. |
API_URL |
Optional | None |
Custom YouTube audio extraction API URL. |
API_KEY |
Optional | None |
Authentication Key for custom YouTube API. |
DURATION_LIMIT |
Optional | 1700 |
Maximum song duration limit in minutes. |
AUTO_LEAVING_ASSISTANT |
Optional | False |
Auto-leave voice chat assistant when call terminates. |
graph LR
User([π€ Telegram User / Group]) -->|Commands / Play Request| Bot[π€ MusicSp Bot Core]
Bot -->|Async Query| DB[(ποΈ MongoDB Atlas)]
Bot -->|Metadata Search| Fetcher[π‘ YouTube / Spotify / Apple]
Bot -->|Stream Dispatch| VC[π PyTgCalls WebRTC Engine]
VC -->|Audio & Video Feed| Call([ποΈ Group Voice Chat / Video Call])
Assistant[π₯ Assistant Userbot] -->|Active Call Participant| Call
Contributions are welcome! Follow these steps:
- π΄ Fork the Repository to your GitHub account.
- πΏ Create a Feature Branch:
git checkout -b feature/cool-feature - βοΈ Commit Changes:
git commit -m 'Add cool feature' - π Push Branch:
git push origin feature/cool-feature - π¬ Submit a Pull Request to our
mainbranch.