Python Telegram Bot to download music from Deezer and YouTube (Heroku, Docker)
:warning: For educational purposes only (or for free music)
Please don't use this for illegal stuff.
It's against Deezer's terms of service.
You should probably use Docker way to install the bot, or follow the steps listed in the Dockerfile.
As indicated in the Dockerfile there's a temporary patch to avoid the "FLAC issue" from the deezer download library.
Your native language is not in the langs.json
file ? Just make a pull request or pm me !
arl
cookie on Deezer for DEEZER_TOKEN
(see this repo)TELEGRAM_TOKEN
)Inline Mode
on BotFather for the bot you just createdSearch for music in inline mode
:
@xxxxxxx_bot (album|track|artist) <search>
or send a Deezer / YouTube link
Create a token.env
file with the following content, replacing the values with your own tokens :
DEEZER_TOKEN=abcdefghijklmnoxxxxxxxxxxxx
TELEGRAM_TOKEN=123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZ
BOT_LANG=fr
Then run :
./update.sh
or directly :
git pull && docker-compose up -d --build
DEEZER_TOKEN
and TELEGRAM_TOKEN
as variable environment(You should use a venv
)