Telegram + Better-Notify
Send typed Telegram messages through the Bot API. Text, photos, documents, video, and audio — routed automatically based on your notification content.
Install
npm install @betternotify/telegramQuick start
import { createClient } from '@betternotify/core';
import { telegramTransport } from '@betternotify/telegram';
const mail = createClient({
catalog,
transportsByChannel: {
telegram: telegramTransport({ token: process.env.TELEGRAM_BOT_TOKEN }),
},
});
await mail.orderUpdate.send({
to: '123456789',
input: { orderId: 'ORD-42', status: 'shipped' },
});Features
- Telegram Bot API
- Markdown and HTML parse modes
- Photo, document, video, audio
- Automatic method routing by content type
- Rate limit detection