β¨ Key Features
| Feature |
Description |
| π§ Multi-Platform Support |
Stream directly from YouTube, Spotify, Apple Music, SoundCloud and more |
| π Playlist Management |
Queue system with auto-play & next-track handling |
| ποΈ Advanced Controls |
Volume, loop, seek, skip, pause/resume |
| β‘ Low Latency |
Optimized audio with ntgcalls |
| π³ Docker Ready |
Deploy anywhere in one click |
| π§ Built with Go |
Stable, concurrent, and memory-efficient |
π Getting Started
π§ Manual Setup
For manual setup instructions for Linux, macOS, and Windows, please see the Installation Guide.
The guide provides comprehensive instructions for deploying the bot using:
- π³ Docker (Recommended)
- π§ Manual Installation (Linux, macOS, and Windows)
π Deploy to Heroku
You can also deploy this bot to Heroku.

βοΈ Configuration
Copy sample.env β .env and fill the required values:
| Variable |
Description |
How to Get |
API_ID |
Your Telegram appβs API ID |
my.telegram.org |
API_HASH |
Your Telegram appβs API hash |
my.telegram.org |
TOKEN |
Your bot token |
@BotFather |
STRING1 |
Your user session string |
Your 2nd acc. string session |
MONGO_URI |
MongoDB connection string |
MongoDB Atlas |
OWNER_ID |
Your Telegram user ID |
@GuardXRobot > /id |
LOGGER_ID |
Group chat ID for logs |
Add bot to group & check chat_id |
SESSION_TYPE |
Type of session string |
pyrogram (default), telethon, or gogram |
API_KEY |
Your API key |
@FallenApiBot > /apikey |
COOKIES_URL |
Cookies URL for the bot |
 |
π€ Commands
| Command |
Description |
/play [song/url] |
Play audio from YouTube or a URL |
/vplay [video/url] |
Play video in the voice chat |
/skip |
Skip the current track |
/pause |
Pause playback |
/resume |
Resume playback |
/stop or /end |
Stop and clear queue |
/queue |
Show the active queue |
/loop [on/off] |
Loop the current track |
/auth [reply] |
Authorize a user for admin commands |
/unauth [reply] |
Remove user authorization |
/authlist |
List authorized users |
π§© Project Structure
TgMusicBot/
βββ pkg/
β βββ config/ # Configuration loading
β βββ core/ # Core logic: database, caching, etc.
β βββ handlers/ # Telegram command handlers
β βββ vc/ # Voice chat management
βββ sample.env # Example environment config
βββ Dockerfile # Docker build configuration
βββ go.mod # Go module definition
βββ main.go # Application entry point
π€ Contributing
Contributions are welcome!
To contribute:
- Fork the repo
- Create your feature branch β
git checkout -b feature/AmazingFeature
- Commit changes β
git commit -m 'Add some AmazingFeature'
- Push β
git push origin feature/AmazingFeature
- Open a pull request
β If you like this project, please star it β it helps others find it!
β€οΈ Donate
If you find this project useful, consider supporting its development with a donation:
- TON:
UQDkCHTN1CA-j_5imVmliDlkqydJhE7nprQZrvFCakr67GEs
- USDT TRC20:
TJWZqPK5haSE8ZdSQeWBPR5uxPSUnS8Hcq
- USDT TON:
UQD8rsWDh3VD9pXVNuEbM_rIAKzV07xDhx-gzdDe0tTWGXan
- Telegram Wallet: @Ashokshau
π License
Licensed under the GNU General Public License (GPL v3).
See the LICENSE file for details.
π¬ Links