Niles: a simple telegram bot template for Heroku
Niles is a simple NodeJs telegram bot template, designed to run on PaaS (currently only works on Heroku).
Recently I had to deploy some simple telegram bots and, in order to simplify the development and deploy process, i created a simple nodejs template (based on telegraf framework [1]) with a deploy script for heroku.
I dubbed the project Niles, like the butler for the Sheffield family in the sitcom The Nanny: indeed, the first bot created using this template was a simple "personal assistant".
Requisites
How to use it
First, clone the git repository [2]:
git clone https://github.com/andreafortuna/niles-tg-bot-nodejs
Then customize the code on index.js and start deploy.sh passing bot token as argument:
./deploy.sh XXXXXXXXXXXXXXXXXXX
When you make changes on code, deploy the changes with a git commit & push:
git commit -am "some code changes" && git push heroku master