TgMusicBot - Telegram Music Bot
Telegram Group Calls Streaming bot with some useful features, written in Python with Py-Tgcalls. Supporting platforms like YouTube, Spotify, Apple Music, 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_URLin 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.
Dependencies Tree: Click to expand
tgmusicbot v1.1.7
โโโ aiofiles v24.1.0
โโโ apscheduler v3.11.0
โ โโโ tzlocal v5.3.1
โโโ cachetools v5.5.2
โโโ kurigram v2.2.0
โ โโโ pyaes v1.6.1
โ โโโ pysocks v1.7.1
โโโ meval v2.5
โโโ motor v3.7.0
โ โโโ pymongo v4.12.0
โ โโโ dnspython v2.7.0
โโโ mutagen v1.47.0
โโโ ntgcalls v1.3.3
โโโ pillow v11.2.1
โโโ psutil v7.0.0
โโโ py-tgcalls v2.1.1
โ โโโ aiohttp v3.11.16
โ โ โโโ aiohappyeyeballs v2.6.1
โ โ โโโ aiosignal v1.3.2
โ โ โ โโโ frozenlist v1.6.0
โ โ โโโ attrs v25.3.0
โ โ โโโ frozenlist v1.6.0
โ โ โโโ multidict v6.4.3
โ โ โโโ propcache v0.3.1
โ โ โโโ yarl v1.20.0
โ โ โโโ idna v3.10
โ โ โโโ multidict v6.4.3
โ โ โโโ propcache v0.3.1
โ โโโ deprecation v2.1.0
โ โ โโโ packaging v24.2
โ โโโ ntgcalls v1.3.3
โโโ py-yt-search v0.2
โ โโโ httpx v0.28.1
โ โโโ anyio v4.9.0
โ โ โโโ idna v3.10
โ โ โโโ sniffio v1.3.1
โ โโโ certifi v2025.1.31
โ โโโ httpcore v1.0.8
โ โ โโโ certifi v2025.1.31
โ โ โโโ h11 v0.14.0
โ โโโ idna v3.10
โโโ pycryptodome v3.22.0
โโโ pydantic v2.11.3
โ โโโ annotated-types v0.7.0
โ โโโ pydantic-core v2.33.1
โ โ โโโ typing-extensions v4.13.2
โ โโโ typing-extensions v4.13.2
โ โโโ typing-inspection v0.4.0
โ โโโ typing-extensions v4.13.2
โโโ pytdbot v0.9.2
โ โโโ aio-pika v9.5.5
โ โ โโโ aiormq v6.8.1
โ โ โ โโโ pamqp v3.3.0
โ โ โ โโโ yarl v1.20.0 (*)
โ โ โโโ exceptiongroup v1.2.2
โ โ โโโ yarl v1.20.0 (*)
โ โโโ deepdiff v8.4.2
โ โโโ orderly-set v5.4.0
โโโ pytgcrypto v1.2.9.2
โโโ python-dotenv v1.1.0
โโโ pytz v2025.2
โโโ tdjson v1.8.47
โโโ ujson v5.10.0
โโโ yt-dlp v2025.3.31
๐ Using Docker (Recommended) (Click to expand)
Check here for installation instructions.
- Clone the repository:
git clone https://github.com/nothing-bots/dan.git && cd dan
- 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)
1.Update and Upgrade your system:
sudo apt-get update && sudo apt-get upgrade -y2.Install tmux to keep running your bot when you close the terminal by:
sudo apt install tmux && tmux3.Install required packages:
sudo apt-get install git python3-pip ffmpeg -y && pip3 install uv4.Clone the repository:
git clone https://github.com/AshokShau/TgMusicBot.git && cd TgMusicBot5.Create a virtual environment:
uv venv6.Activate the virtual environment:
- Windows:
.venv/Scripts/activate - Linux/Mac:
source .venv/bin/activate
7.Install dependencies:
uv pip install -e .8.Set up environment variables:
cp sample.env .env && vi .envPress
Ctrl+Cwhen you're done with editing env and:wqto save the environment variables.
9.Finally, run the bot by:
tgmusicbotFor getting out from tmux session: Press
Ctrl+band thend.
๐ Environment Variables (Click to expand)
- API_ID โ Get from my.telegram.org
- API_HASH โ Get from my.telegram.org
- TOKEN โ Get from @BotFather
- STRING1 - 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
- LOGGER_ID โ Log Group ID
- AUTO_LEAVE โ Leave all chats for all userbot clients.
- 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
/startto initialize the bot. - Use
/helpto 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: