@bonvoy/plugin-telegram
v0.12.0
Published
🚢 Telegram notification plugin for bonvoy
Downloads
24
Maintainers
Readme
@bonvoy/plugin-telegram
Telegram notification plugin for bonvoy. Sends release notifications via Telegram Bot API.
Installation
npm install @bonvoy/plugin-telegramUsage
- Create a bot via @BotFather
- Get your chat ID (use @userinfobot)
- Configure the plugin:
// bonvoy.config.js
export default {
plugins: [
['@bonvoy/plugin-telegram', {
botToken: process.env.TELEGRAM_BOT_TOKEN,
chatId: process.env.TELEGRAM_CHAT_ID,
}]
]
};Configuration
| Option | Type | Required | Description |
|--------|------|----------|-------------|
| botToken | string | Yes | Telegram Bot Token from BotFather |
| chatId | string | Yes | Chat/Group/Channel ID |
| parseMode | string | No | Message format: HTML, Markdown, MarkdownV2 (default: HTML) |
| disableWebPagePreview | boolean | No | Disable link previews (default: true) |
| onSuccess | boolean | No | Send on success (default: true) |
| onFailure | boolean | No | Send on failure (default: false) |
Environment Variables
TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
TELEGRAM_CHAT_ID=-1001234567890License
MIT
