JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 33
  • Score
    100M100P100Q80664F
  • License MIT

Batched Telegram notification bot for 0xAlice

Package Exports

  • 0xalice-tgram-bot
  • 0xalice-tgram-bot/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (0xalice-tgram-bot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

0xAlice Telegram Bot

Batched Telegram notification bot for 0xAlice.

Installation

yarn add 0xalice-tgram-bot

Usage

import { MessageBatcher } from '0xalice-tgram-bot';

const bot = new MessageBatcher({
  botToken: process.env.TELEGRAM_BOT_TOKEN!,
  chatId: process.env.TELEGRAM_CHAT_ID!,
  batchDelay: 60000, // optional, defaults to 60000
  development: process.env.NODE_ENV === 'development' // optional
});

bot.info('Service started');
bot.warning('High memory usage');
bot.error('Database connection failed');