Skip to content

Latest commit

Β 

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MusicSp Animated Neon Audio Engine


GitHub Stars GitHub Forks License Python Telegram Community

⚑ 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.

πŸš€ π‘«π’†π’‘π’π’π’šπ’Žπ’†π’π’• 𝑴𝒆𝒕𝒉𝒐𝒅𝒔

🟣 𝑢𝒏𝒆-π‘ͺπ’π’Šπ’„π’Œ π‘―π’†π’“π’π’Œπ’– π‘«π’†π’‘π’π’π’šπ’Žπ’†π’π’•

Deploy on Heroku Badge

Deploy to Heroku Button


πŸš€ 𝑽𝑷𝑺 π‘«π’†π’‘π’π’π’šπ’Žπ’†π’π’•

⚑ π‘½π’Šπ’†π’˜ 𝑽𝑷𝑺 π‘«π’†π’‘π’π’π’šπ’Žπ’†π’π’• π‘ͺπ’π’Žπ’Žπ’‚π’π’…π’” (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 .env

πŸ”Ή 𝑺𝒕𝒆𝒑 πŸ”: 𝑺𝒕𝒂𝒓𝒕 π‘΄π’–π’”π’Šπ’„π‘Ίπ’‘ 𝑩𝒐𝒕

bash 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
Loading

🀝 π‘ͺπ’π’π’•π’“π’Šπ’ƒπ’–π’•π’Šπ’π’ & π‘³π’Šπ’„π’†π’π’”π’†

Contributions are welcome! Follow these steps:

  1. 🍴 Fork the Repository to your GitHub account.
  2. 🌿 Create a Feature Branch: git checkout -b feature/cool-feature
  3. ✍️ Commit Changes: git commit -m 'Add cool feature'
  4. πŸš€ Push Branch: git push origin feature/cool-feature
  5. πŸ“¬ Submit a Pull Request to our main branch.

AGPL v3.0 License Developer Sparrow


πŸ’¬ π‘ͺπ’π’Žπ’Žπ’–π’π’Šπ’•π’š & 𝑺𝒖𝒑𝒑𝒐𝒓𝒕

Developer Home Contact Owner Demo Bot

About

🎧High-performance Telegram Voice Chat Music & Video Streaming Bot powered by Python, Kurigram, and PyTgCalls (Developer Sparrow Core).πŸ”₯

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages