Play songs directly in telegram voice chats.
Play any media(song, video, live, remote) directly into your group voice chat.
Official Bot : VCPlayerBot | Discussion Group : VoiceChat Music Player Support
Checkout AutoForwarder Bot | Try Code Compile Bot
Run on Repl
button below (Click on run after opening the url below) or use the generateSession.py
file or read the steps mentioned here.Deploy to Heroku
button below. Fill in the required fields on the website that opens..env copy
to .env
and fill all the values there. You can leave the MONGO_URL
line as it is (only fill if you know what you are doing)pip3 install -U -r requirements.txt
Run python3 main.py -env prod
(make sure -env prod
flag is provided, if not rename .env
file to .env.copy
)
Starting from command line:
prod|local
Available env variables
Mandataory
API_ID : get it from my.telegram.org
Mandataory
API_HASH : get it from my.telegram.org
Mandataory
BOT_TOKEN : bot token of your music bot, get it from @botfather
Mandataory
USERBOT_SESSION : user bot pyrogram session string, read the steps mentioned here to get your session string.
Optional
MONGO_URL : connection url for mongo databse. needed if you wnat to run the service in single mode
Many other optional variables, check Config.py file for details.
Streams directly from url, Playlist support
Command | Description |
---|---|
/start , /help | Lists the available commands. |
/play song_name/song_url -res[num] | Starts the song in the voice chat, num specifies the audio resolution. eg. /play coldplay -res256 → plays coldplay song in 256 bit rate |
/play song_name/song_url -video -res[num] | Starts the video in the voice chat, num specifies the video resolution. eg. /play coldplay -res2480 → plays coldplay video in 480p |
/skip | Skip the current media playback. |
/stop | Stops the playback. |
For any issues/questions please contact here
Pull Requests are more than welcome.