Once your Express application is deployed, it is important to get notified of any errors in real-time. While there are many advanced solutions for this task already, this utility middleware focuses on being minimalistic, easy setup and of course the cosy Telegram :).
- Write to BotFather, give it a command
/newbot
, answer the questions, and it will give you a secret token (we call thisbotToken
). - Create a channel, give it a username, and add the bot you have just created to this channel.
- Inside of your project directory, run
npm install --save express-notify-telegram
. - Run
npx express-notify-telegram
. This CLI will ask you thebotToken
and channel's username you created i