Telegram bot made with the python, for unique purpose of downloading songs high quality songs with all the metada from the internet. You can use this bot clicking here MusicBot or searching for @downspotmusicbot in telegram
- Requests: Making the requests to youtube API for searching songs, and for the Spotify recommendations API
- Python-telegram-bot: As the core library for building the telegram bot
- Pytube: To download the songs from youtube
- Spotdl: To download songs with the spotify links and search engine, but downloading the songs from YoutubeMusic
It may seem that there is a bit of redundacy with dependencie modules and it's true. I am migrating all the critical operations to Spotdl api.
Buildit with docker using the Dockerfile and setting the environment variable
You can buildit from the source code using poetry
sudo apt-get upgrade && sudo apt-get update && sudo apt-get install poetry poetry installInstall ffmpeg:
sudo apt-get install -y ffmpeg
BOTTOKEN = # The telegram bot token
GOOGLEAPI = # GoogleAPiToken
CLIENTID = # Spotify CLient Id
CLIENTSCRT = # Spotify Client Secret poetry run python3.8 main.py