1.3.3 • Published 3 years ago
telegram-notify v1.3.3
telegram-notify
this package for sending telegram messages
Usage
const Telegram = require('telegram-notify');
let notify = new Telegram({token:'tokenString', chaiId:'id'});
await notify.send('alert');
Installation
To use the library, install it through npm
npm install --save telegram-notify
config
token
- 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)
API
send
send a telegram message