this package for sending telegram messages
const Telegram = require('telegram-notify');
let notify = new Telegram({token:'tokenString', chaiId:'id'});
await notify.send('alert');
To use the library, install it through npm
npm install --save telegram-notifytoken- your telegram bot token, create bot: https://t.me/BotFatherchatId- telegram chat id for notify, get the id: https://t.me/get_id_botproxy- telegram proxy string [optional], e.q. http://login:password@ip:portmaxErrors- max attempts to send a telegram message (default:5)
sendsend a telegram message