This is an short description how you can deploy your bot on Heroku. The description presumes that you already:
- have a bot and it’s token. If not, please create one. You’ll find several explanations on the internet how to do this.
- have a Heroku account
heroku apps:create ${DOTNETCORE_APP_NAME} --buildpack jincod/dotnetcore
heroku config:set BOT_ACCESS_TOKEN=${BOT_ACCESS_TOKEN}
Copy env.sh.example to env.sh and modify the BOT_ACCESS_TOKEN(for localhost run) and WEBHOOK_URL
heroku config:set WEBHOOK_URL=${DOTNETCORE_APP_NAME}.herokuapp.com/api/update
git push heroku master
heroku open