Catalog npm
Back to packageRELEASE DETAILS

0.1.2

npm

0xalice-tgram-bot

Batched Telegram notification bot for 0xAlice

botnotificationstelegramvbase
Published7 Dec 2024
Direct dependencies9
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 9

Native requirements
9 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.9.5runtime
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^29.5.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^8.37.0development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^29.1.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^2.8.7development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^29.5.0development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^18.15.11development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^5.57.1development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^5.57.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "9d9e3b458daab1dc37a1dc1d07b571015c7c40ab",
  "tarball": "https://registry.npmjs.org/0xalice-tgram-bot/-/0xalice-tgram-bot-0.1.2.tgz",
  "fileCount": 12,
  "integrity": "sha512-Ec1R144AXbnIFvC+MuqwPdW9FLgjJKDnugYr+Yv0nfL75eMWB5emYcS3/wad2uJHQTP7C/EkiWomuODWOzYUwQ==",
  "signatures": [
    {
      "sig": "MEUCIQDD0Hrg3d52H0FqhIAvQKay/TTcQ/7ObxgK6egtMylRyQIgIa4VwWE0z+9C3IoLrJuTD+xPNXfgth+IkMALxozBq44=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 6480
}

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:ea971396f609551469080e45d1a02cdc0d209ea8c81099aa0dfdea7c917f59a9

Other collected versions

0.2.198 Dec0.2.188 Dec0.2.178 Dec0.2.158 Dec0.2.147 Dec0.2.137 DecView all collected versions →