TgMusicBot - Telegram Music Bot
Telegram Group Calls Streaming bot with some useful features, written in Python with Py-Tgcalls. Supporting platforms like YouTube, Spotify, AppleMusic, Soundcloud, JioSaavn and more.
@FallenBeatzBot - Try it now!
Say goodbye to restrictions with our Premium Music API – your ultimate solution for seamless, high-quality downloads.
- Easy Integration – Just set
API_URL
in your bot configuration. - High-Quality Downloads – Get music from Spotify, Apple Music, SoundCloud, and YouTube in top quality.
- Unlimited Access – No limits, no interruptions – download as much as you want.
➡️ Click here for more details
📩 Contact me on Telegram to get access!
📘 Check out this guide for instructions on downloading and using them.
- Multi-Platform Support - Play music from Spotify, YT-Music, YouTube, JioSaavn, Apple Music, SoundCloud and Telegram files.
- Playlists & Queue - Seamless music playback with queue management.
- Full Playback Controls - Skip, Pause, Resume, End, Mute, Unmute, Volume, Loop, Seek.
- Group Voice Chats - Supports Telegram group voice chats (requires admin permissions).
- Optimized Performance - Fully async, efficient, and lightweight.
- Easy Deployment - Pre-configured Docker setup.
- Open-Source & Free - Built from scratch using PyTdBot & PyTgCalls.
💡 Prefer using Pyrogram instead of PyTdBot? Check out the Pyro-Branch.
📌 Using Docker (Recommended) (Click to expand)
Check here for installation instructions.
- Clone the repository:
git clone https://github.com/AshokShau/TgMusicBot.git && cd TgMusicBot
- Build the Docker image:
docker build -t tgmusicbot .
- Set up environment variables:
cp sample.env .env && vi .env
- Run the Docker container:
docker run -d --name tgmusicbot --env-file .env tgmusicbot
📌 Manual Installation (Click to expand)
-
Update and Upgrade your system:
sudo apt-get update && sudo apt-get upgrade -y
-
Install required packages:
sudo apt-get install git python3-pip ffmpeg aria2 -y
-
Clone the repository:
git clone https://github.com/AshokShau/TgMusicBot.git && cd TgMusicBot
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
- Windows:
venv/Scripts/activate
- Linux/Mac:
source venv/bin/activate
- Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
cp sample.env .env && vi .env
Press
Ctrl+C
when you're done with editing env and:wq
to save the environment variables. -
Install tmux to keep running your bot when you close the terminal by:
sudo apt install tmux && tmux
-
Finally run the bot by:
bash start
For getting out from tmux session : Press
Ctrl+b
and thend
.
📌 Environment Variables (Click to expand)
- API_ID – Get from my.telegram.org
- API_HASH – Get from my.telegram.org
- TOKEN – Get from @BotFather
- STRING - Pyrogram String Session, STRING2 ... STRING10
Get from @StringFatherBot
- OWNER_ID – Your Telegram User ID
- MONGO_URI – Get from MongoDB Cloud
- API_URL – Buy from @AshokShau (Spotify API for unlimited downloads)
- API_KEY – Required for API_URL
- DOWNLOADS_DIR – Directory for downloads and TDLib database
- SUPPORT_GROUP – Support Group Link
- SUPPORT_CHANNEL – Support Channel Link
- IGNORE_BACKGROUND_UPDATES – Ignore background updates
- PROXY_URL – Optional; Proxy URL for yt-dlp
- DEFAULT_SERVICE – Default search platform (Options:
youtube
,spotify
,jiosaavn
) - DOWNLOADS_DIR – Directory for downloads and TDLib database
- COOKIES_URL – URLs for downloading cookies (More info here)
- Add @FallenBeatzBot to a group and grant admin permissions.
- Use
/start
to initialize the bot. - Use
/help
to view the list of available commands.
Contributions are welcome! If you'd like to contribute:
- Fork the repository.
- Make meaningful changes – improve features, fix bugs, or optimize performance.
- Submit a pull request with a clear explanation of your changes.
🔹 Avoid submitting minor PRs for small typos or README tweaks unless they significantly improve clarity.
This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.
- AshokShau - Creator & Maintainer
- Thanks to all contributors & bug hunters for improving the project!
- Special thanks to PyTgCalls for their outstanding work.
Love TgMusicBot? Help keep it running!
💰 Donate via Crypto, PayPal, or UPI – Contact me on Telegram for details.
Every contribution helps! ❤️
Follow me on GitHub for updates.
Star the repository on GitHub to support the project.
📢 Join our Telegram community: