A telegram bot for downloading spotify playlist songs on telegram. The bot works by getting list of song names from spotify and find them on youtube.
- Create a telegram bot using bot father
- Create account on heroku.com
- Create a new application on heroku
- fork this repository
- To deploy bot on heroku there are two methods (CLI and Web), we use the heroku.com way:
- In your application on heroku go to deploy tab and choose Github on deployment method
- Select this repository you forked there and choose deploy from master option
- Then go to settings tab on heroku and add two vars to config vars:
- URL: Base URL of the application you created on Heroku
- TOKEN: your telegram bot token)
- install heroku CLI and run the command
heroku stack:set container -a APP_NAME
(APP_NAME is name of the app you choose when creating heroku application) then login to your account for change to happen - In heroku from deploy section scroll down to Manual deploy and press deploy branch for master branch
- use the Dockerfile for deployment method
- Set the TOKEN and URL in environment variables
To run the bot on local machine you need a way to expose a web url from your machine, this can be done with tools like ngrok.io. After setting up the URL run the bot and provide the settings
python bot.py --token {your-token} --url {ngrok-url} --port 8443