Play any song directly into your group voice chat.
Official Bot : TgVCPlayerBot | Discussion Group : VoiceChat Music Player Support
- Telegram Api Id and Hash [ Get it from my.telegram.org ]
- A Telegram Bot Token. Get it from @botfather.
- Python 3.6+
- ffmpeg [ How to Install ? ]
- Get your telegram API ID and API HASH from my.telegram.org and the BOT TOKEN from @botfather.
- Generate your telegram session string using the
Run on Repl
button below (Click on run after opening the url below) or use thegenerateSession.py
file.
- Clcik on the
Deploy to Heroku
button below. Fill in the required fields on the website that opens.
- Add the bot to your group and send the commands to start using the VCPlayer Bot :)
- Install pyrogram for generatong session string :
pip3 install -U pyrogram
- Generate your telegram session string. Run
python3 generateSession.py
- Rename
.env copy
to.env
and fill all the required/mandatory fields in there.
- After the setup is done.
- Install ffmpeg :
sudo apt-get install ffmpeg
- Install the requirements :
pip3 install -U -r requirements.txt
- Run the service by :
- Run
python3 main.py --help
for available settings. - Or Run
python3 main.py -env prod
to use default settings
Starting from command line:
- python3 main.py -env
prod|local
-modesingle|multiple
-autoleaveon|off
Available env varibales
Mandataory
SESSION_NAME : Pyrogram session string.Mandataory
BOT_TOKEN : A bot token from @BotFather.Mandataory
BOT_NAME : Your MusicPlayer Bot Name.Mandataory
API_ID : App ID from my.telegram.org/apps.Optional
API_HASH : App hash from my.telegram.org/apps.Optional
SUDO_USERS : List of user IDs counted as admin everywhere (separated by space).Optional
DURATION_LIMIT : Max audio duration limit for downloads (minutes).
Command | Description |
---|---|
/start , /help | Lists the available commands. |
/play song_name | Starts the song in the voice chat. |
/skip | Skips the current song. |
/end | End the voice player. |
For any issues/questions please contact here
Pull Requests are more than welcome.