A Powerful Telegram Music Bot to Play Songs in Voice Chats
- Play Music: Stream high-quality music in Telegram voice chats
- Multiple Sources: YouTube, Spotify, SoundCloud, and local files
- Playlists: Create and manage playlists for your group
- Multi-Language: Available in multiple languages
- Elegant UI: Clean and modern user interface
- Group Management: Powerful admin commands
- High Quality: Crystal clear audio streaming
| Command | Description |
|---|---|
/play |
Play song from YouTube |
/pause |
Pause the current stream |
/resume |
Resume the paused stream |
/skip |
Skip to the next song |
/stop |
Stop the streaming |
/playlist |
Show the playlist |
/song |
Download a song as audio |
/settings |
Open bot settings |
First, update your system and install required packages:
sudo apt-get update && sudo apt-get upgrade -ysudo apt-get install python3 python3-pip ffmpeg git screen curl -ycurl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -sudo apt-get install -y nodejsgit clone https://github.com/NoxxOP/ShrutiMusic
cd ShrutiMusicscreen python3 -m venv venv
source venv/bin/activatepip3 install -U pip
pip3 install -U -r requirements.txtCopy example config file and edit it with your values:
nano .envFill in your:
API_ID&API_HASHfrom my.telegram.orgBOT_TOKENfrom @BotFatherMONGO_DB_URIfrom your MongoDB Atlas clusterOWNER_ID(Your Telegram user ID)OWNER_USERNAME(Your Telegram username without @)BOT_USERNAME(Your bot’s username without @)UPSTREAM_REPO(GitHub repo URL for updates Recommend : Original Source)STRING_SESSION(Generate using @ShrutiSessionBot)GIT_TOKEN(If your repo is private)LOG_GROUP_ID(Log group/channel ID starting with -100)SUPPORT_GROUP(Full Link of your Support Group)SUPPORT_CHANNEL(Full Link Of your Support channel )COOKIE_URL(Optional: If no cookies file in Your Repo)START_IMG_URL(Image URL for /start message thumbnail)
There are two ways to start the bot:
- Using Python directly:
python3 -m ShrutiMusic- Using Bash script:
bash startTo detach the screen, press Ctrl+A then D
To reattach the screen later:
screen -lsSee Your Screen ID and then:
screen -r {screen_id}Make Sure Fill Your Screen ID without Bracket {} . Example : screen -r 108108
- Click the button above
- Fill in the required details:
- App name
- API_ID & API_HASH
- BOT_TOKEN
- MUSIC_BOT_NAME
- SESSION_STRING
- SUDO_USERS (your User ID)
- Click "Deploy App"
- Once deployed, go to Resources tab and turn on the worker
Use our Session Generator Bot: @ShrutiSessionBot
- Start the bot
- Send phone number with country code
- Enter the OTP
- Your session string will be generated
- Bot not responding: Check if the bot is running and has proper permissions
- No sound in VC: Ensure ffmpeg is properly installed
- Can't join voice chat: Make sure the bot is an admin with voice chat permissions
- API Issues: Double check your API_ID and API_HASH
- NoxxOP: Main Developer
- All contributors who helped make this project better
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or help, join our Support Group
🎵 Enjoy Streaming Music with Shruti Bot! 🎵