Rename and configure environment variables
April 23, 2026 Β· View on GitHub
AnonXMusic
Telegram Group Calls Streaming Bot
Supports YouTube, Spotify, Resso, Apple Music, SoundCloud and M3U8 links.
AnonXMusic lets you stream high-quality and low-latency audio and video playback into telegram group video chats.
Built with Python, Pyrogram, and Py-TgCalls, itβs optimized for reliability and easy deployment on Heroku, VPS, or Docker.
π₯ Features
- π§ Stream low-latency audio in real time to Telegram group video chats
- π Supports multiple platforms like YouTube, Spotify, Apple Music, SoundCloud
- β‘ Advanced queue management with auto-play
- βοΈ Easy deployment β works on Local, VPS, or Heroku
- β€οΈ Built with Python
βοΈ Manual Deployment
βοΈ Prerequisites
- Python 3.10+ installed
- deno & ffmpeg installed on your system
- Required variables mentioned in sample.env
Local / VPS Setup
π§ Linux/macOS
git clone https://github.com/AnonymousX1025/AnonXMusic && cd AnonXMusic
# Install uv
curl -Ls https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
# Install dependencies
uv sync --frozen
# Rename and configure environment variables
mv sample.env .env
# Edit .env with your credentials
# Start the bot
bash start
πͺ Windows (PowerShell)
git clone https://github.com/AnonymousX1025/AnonXMusic && cd AnonXMusic
# Install uv
irm https://astral.sh/uv/install.ps1 | iex
# Install dependencies
uv sync --frozen
# Rename and configure environment variables
mv sample.env .env
# Edit .env with your credentials
# Start the bot
uv run python3 -m anony
> β or use Git Bash or WSL to run `bash start`.
βοΈ Configuration
Edit .env (or set variables in your hosting environment):
Here's an example of the .env file
API_ID=123456
API_HASH=abcdef1234567890
BOT_TOKEN=123456:ABC-DEF
OWNER_ID=123456789
LOGGER_ID=-1001234567890
MONGO_URL=mongodb+srv://
SESSION=BQgfh...AA
π Check config.py for all available options.
π§ Usage
- Add the bot to your Telegram group.
- Promote it to admin with invite users permission.
- Use commands in the chat to control playback:
Commands overview
/play [song name or link] -> Play audio in the videochat
/vplay [song name or link] -> Play video in the videochat
/pause -> Pause playback
/resume -> Resume playback
/skip -> Skip to next track
/stop -> Stop playback
/seek -> Seeks the stream
/queue -> Show queue
β€οΈ Contributing
Contributions are welcome!
- Fork the repository.
- Create your branch:
git checkout -b feature/new. - Commit changes:
git commit -m 'New feature'. - Push:
git push origin feature/new - Open a Pull Request.
ποΈ License
This project is licensed under the MIT License β see LICENSE for details.
π€ Updates and support
π Acknowledgements
- Inspired by other open-source Telegram music bots.
- Thanks to all the contributors.
β Enjoying the tunes? Star the repo β feedback keeps the rhythm going!