Catalog npm
Back to packageRELEASE DETAILS

0.2.6

npm

0xalice-tgram-bot

Batched Telegram notification bot for 0xAlice

botnotificationstelegramvbase
Published7 Dec 2024
Direct dependencies14
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 14

Native requirements
14 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
^3.3.0runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.9.5runtime
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^29.7.0development
sinon
Environment
{
  "local_name": "sinon",
  "alias": false,
  "peer_metadata": null
}
^19.0.2development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^8.37.0development
esbuild
Environment
{
  "local_name": "esbuild",
  "alias": false,
  "peer_metadata": null
}
^0.24.0development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^29.2.5development
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.14development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^18.15.11development
@types/sinon
Environment
{
  "local_name": "@types/sinon",
  "alias": false,
  "peer_metadata": null
}
^17.0.3development
esbuild-node-externals
Environment
{
  "local_name": "esbuild-node-externals",
  "alias": false,
  "peer_metadata": null
}
^1.15.0development
@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": "4eaf31c67ba852253e74f28d047311f76d6f7a15",
  "tarball": "https://registry.npmjs.org/0xalice-tgram-bot/-/0xalice-tgram-bot-0.2.6.tgz",
  "fileCount": 18,
  "integrity": "sha512-S8Q5g8YDtW158gYECpMbUfLfIEOQTegPr+5R7m4E764757GiuhPHpeEK5OVA/T7VCW/T6gGrV3jhm/DOdDbj7g==",
  "signatures": [
    {
      "sig": "MEYCIQDHxuXwRcbQW35/Xu7uZNWc9WtDPDf5CyLqWfocH6eWDQIhAJfraNF9mYW1U9Z0ftCw6LE/1tgPgTQdx94arYvjR2If",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 24165
}

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:26af5f2419ea2910cdccd0e277e19cb14964aedb1de922bdd7c3ca9aa63d287b

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 →