telegram-message-notify
v0.1.0
Published
Telegram sand a messages notify
Maintainers
Readme
Telegram-notify
This package for sending telegram messages notify
Usage
const Telegram = require("telegram-message-notify");
let notify = new Telegram({
token: "yourTokenString",
chatId: "yourChatId",
parse_mode: "html",
});
await notify.send("<b>Hello</b> world");Installation
To use the library, install it through npm
npm install --save telegram-message-notifyConfig
token- Your telegram bot token, create bot: https://t.me/BotFatherchatId- Telegram chat id for notify, get the id: https://t.me/get_id_botparse_mode- The Bot API supports basic formatting for messages: https://core.telegram.org/bots/api#formatting-optionsproxy- 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
