Catalog npm
Back to packageRELEASE DETAILS

0.2.19

npm

0xalice-tgram-bot

Batched Telegram notification bot for 0xAlice

botnotificationstelegramvbase
Published8 Dec 2024
Direct dependencies22
Transitive dependenciesNot calculated

README

Current package documentation

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-bot

From 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_TOKEN

Then install:

npm install @21e8/0xalice-tgram-bot
# or with yarn
yarn add @21e8/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');

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 22

Native requirements
22 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
^3.3.0runtime
nodemailer
Environment
{
  "local_name": "nodemailer",
  "alias": false,
  "peer_metadata": null
}
^6.9.16runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.9.5runtime
@rollup/plugin-commonjs
Environment
{
  "local_name": "@rollup/plugin-commonjs",
  "alias": false,
  "peer_metadata": null
}
^28.0.1development
@rollup/plugin-node-resolve
Environment
{
  "local_name": "@rollup/plugin-node-resolve",
  "alias": false,
  "peer_metadata": null
}
^15.3.0development
@rollup/plugin-typescript
Environment
{
  "local_name": "@rollup/plugin-typescript",
  "alias": false,
  "peer_metadata": null
}
^12.1.1development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^29.5.14development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^18.15.11development
@types/nodemailer
Environment
{
  "local_name": "@types/nodemailer",
  "alias": false,
  "peer_metadata": null
}
^6.4.17development
@types/sinon
Environment
{
  "local_name": "@types/sinon",
  "alias": false,
  "peer_metadata": null
}
^17.0.3development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^5.57.1development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^5.57.1development
esbuild
Environment
{
  "local_name": "esbuild",
  "alias": false,
  "peer_metadata": null
}
^0.24.0development
esbuild-node-externals
Environment
{
  "local_name": "esbuild-node-externals",
  "alias": false,
  "peer_metadata": null
}
^1.15.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^8.37.0development
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^29.7.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^2.8.7development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^4.28.1development
rollup-plugin-dts
Environment
{
  "local_name": "rollup-plugin-dts",
  "alias": false,
  "peer_metadata": null
}
^6.1.1development
sinon
Environment
{
  "local_name": "sinon",
  "alias": false,
  "peer_metadata": null
}
^19.0.2development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^29.2.5development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.9.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "e3c3dd5dfffee8e6d4b11d2541fd7ad827200523",
  "integrity": "sha512-ImmoUSNYjZctMrDbOrGzIuJbhpJDs6tcv5ZxKrGd5IME9cPPTWKyHChYNp8WyedHo/qQqE/44j/NOd8ip79NXg==",
  "tarball": "https://registry.npmjs.org/0xalice-tgram-bot/-/0xalice-tgram-bot-0.2.19.tgz",
  "fileCount": 12,
  "unpackedSize": 383182,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDHQAW7O987OboYCHwY45BRrES0PFDHTVR/znbp04w9UQIhAMuFFG8uMQOVIwXT7RtPQCTuBxexJM9SY0nMXEGCc7c5"
    }
  ]
}

Repository

PENDING
21e8/telegram-batch-bot

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:49 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:f8ee84a642e6d08f70a7a34214f7b4ca43c33409ce4f3e774ffdfffc6e078349

Other collected versions

0.2.188 Dec0.2.178 Dec0.2.158 Dec0.2.147 Dec0.2.137 Dec0.2.127 DecView all collected versions →