A collaborative YouTube music player via Telegram bot, VLC remote-control and yt-dlp
Automatically download and extract audio from YouTube videos shared via Telegram bot and play with VLC media player.
You must have VLC installed for the program to work.
Currently, only Windows is supported.
- Clone repo
git clone https://github.com/NamesJ/youplayer.git
- CD into repo
cd youplayer
- Create virtual environment
python -m venv venv
- Active venv
.\venv\scripts\activate
- Install required packages
pip install -r requirements.txt
- Copy
example.env
file to.env
- Create a Telegram bot to get your API key
- Replace example
API_KEY
value in.env
with your bot API key - Run
main.py
to start the program - Start a conversation in Telegram with your bot
- In Telegram, run bot command
/show_id
to get the chat ID for your account - Replace example
SUPER_CHAT_ID
value in.env
with your chat ID. This will give your account all available permissions
- Get chat IDs for users you wish to add (hint: they can use
/show_id
command to get their ID) - In Telegram, run bot command
/whitelist
and pass one or more of these chat IDs (example:/whitelist 1111111111 2222222222
)
To view a list of available commands send /help
command to bot
youplayer.musicplayer
package not used in current version