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.envfile to.env - Create a Telegram bot to get your API key
- Replace example
API_KEYvalue in.envwith your bot API key - Run
main.pyto start the program - Start a conversation in Telegram with your bot
- In Telegram, run bot command
/show_idto get the chat ID for your account - Replace example
SUPER_CHAT_IDvalue in.envwith 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_idcommand to get their ID) - In Telegram, run bot command
/whitelistand 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