Skip to content
ย 
ย 

Latest commit

ย 

History

90 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

thumbnail

@FallenBeatzBot - Try it now!


๐Ÿšซ Tired of IP Bans from YouTube?

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!


Want to use cookies?

๐Ÿ“˜ Check out this guide for instructions on downloading and using them.


Features

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


Installation

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.

  1. Clone the repository:
    git clone https://github.com/nothing-bots/dan.git && cd dan
  2. Build the Docker image:
    docker build -t tgmusicbot .
  3. Set up environment variables:
    cp sample.env .env && vi .env
  4. 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 -y

2.Install tmux to keep running your bot when you close the terminal by:

sudo apt install tmux && tmux

3.Install required packages:

sudo apt-get install git python3-pip ffmpeg -y && pip3 install uv

4.Clone the repository:

git clone https://github.com/AshokShau/TgMusicBot.git && cd TgMusicBot

5.Create a virtual environment:

uv venv

6.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 .env

Press Ctrl+C when you're done with editing env and :wq to save the environment variables.

9.Finally, run the bot by:

tgmusicbot

For getting out from tmux session: Press Ctrl+b and then d.

Deploy on Heroku (Click to expand)

Deploy


Configuration

๐Ÿ“Œ Environment Variables (Click to expand)

๐Ÿ”‘ Required Variables

๐Ÿ”— String Sessions

  • STRING1 - Pyrogram String Session, STRING2 ... STRING10

Get from @StringFatherBot

๐Ÿ› ๏ธ Additional Configuration

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

๐ŸŽต Music Download Options

  • 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

  • COOKIES_URL โ€“ URLs for downloading cookies (More info here)

๐ŸŽฎ Usage

  1. Add @FallenBeatzBot to a group and grant admin permissions.
  2. Use /start to initialize the bot.
  3. Use /help to view the list of available commands.

Contributing

Contributions are welcome! If you'd like to contribute:

  1. Fork the repository.
  2. Make meaningful changes โ€“ improve features, fix bugs, or optimize performance.
  3. 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.


License

This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.


Credits

  • AshokShau - Creator & Maintainer
  • Thanks to all contributors & bug hunters for improving the project!
  • Special thanks to PyTgCalls for their outstanding work.

๐Ÿ’– Support the Project

Love TgMusicBot? Help keep it running!

๐Ÿ’ฐ Donate via Crypto, PayPal, or UPI โ€“ Contact me on Telegram for details.

Every contribution helps! โค๏ธ


๐Ÿ”— Links

Follow me on GitHub for updates.
Star the repository on GitHub to support the project.

๐Ÿ“ข Join our Telegram community:
Telegram Group
Telegram Channel


About

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.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages