0.2.12 • Published 12 months ago
0xalice-tgram-bot v0.2.12
0xAlice Telegram Bot
Batched Telegram notification bot for 0xAlice.
Installation
From npm registry
npm install 0xalice-tgram-bot
# or with yarn
yarn add 0xalice-tgram-botFrom GitHub Packages
First, authenticate with GitHub Packages:
npm login --registry=https://npm.pkg.github.com
# or create .npmrc with:
@21e8:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKENThen install:
npm install @21e8/0xalice-tgram-bot
# or with yarn
yarn add @21e8/0xalice-tgram-botUsage
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');0.2.19
11 months ago
0.2.18
11 months ago
0.2.17
11 months ago
0.2.15
11 months ago
0.2.14
12 months ago
0.2.13
12 months ago
0.2.12
12 months ago
0.2.11
12 months ago
0.2.10
12 months ago
0.2.9
12 months ago
0.2.8
12 months ago
0.2.6
12 months ago
0.2.5
12 months ago
0.2.3
12 months ago
0.2.2
12 months ago
0.2.1
12 months ago
0.2.0
12 months ago
0.1.12
12 months ago
0.1.11
12 months ago
0.1.10
12 months ago
0.1.9
12 months ago
0.1.8
12 months ago
0.1.7
12 months ago
0.1.6
12 months ago
0.1.5
12 months ago
0.1.4
12 months ago
0.1.3
12 months ago
0.1.2
12 months ago
0.1.1
12 months ago