Skip to content

Latest commit

 

History

History
88 lines (65 loc) · 3.49 KB

README.md

File metadata and controls

88 lines (65 loc) · 3.49 KB

Hits

Use case

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 :).

Setup

  1. Write to BotFather, give it a command /newbot, answer the questions, and it will give you a secret token (we call this botToken).
  2. Create a channel, give it a username, and add the bot you have just created to this channel.
  3. Inside of your project directory, run npm install --save express-notify-telegram.
  4. Run npx express-notify-telegram. This CLI will ask you the botToken and channel's username you created i