Telegram bot to download songs from Spotify and YouTube url.
A spring boot Java app, which can easily be deployed to Heroku.
Make sure you have Java and Maven installed. Also, install the Heroku CLI.
$ git clone https://github.com/jitnegii/Telegram-bot.git
$ cd Telegram-bot
$ mvn clean install -Dbot.token=<your-bot-token> -Dbot.name=<your-bot-name> -Dserver.port=<server-port>
$ heroku local:start
Your app should now be running on localhost:5000.
$ heroku create <app-name>
$ heroku config:set TOKEN=<your-bot-token> NAME=<your-bot-name>
$ git push heroku master
$ heroku open
Note : Make sure you set the TOKEN and NAME correctly.
For more information about using Java on Heroku, see these Dev Center articles: