@sparanoid/eop-sender-telegram

1.10.23 • Public • Published

@sparanoid/eop-sender-telegram

Send processed data to Telegram

Features

  • Simple, fast, ESM by default
  • Minimal dependencies, HTTPS requests by got

Usage

import send from '@sparanoid/eop-sender-telegram';

const options = {
  payload: `json`, // `json` or `form`
  token: '1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789',
  method: `sendMessage`,
};

const resp = await send(options, {
  chat_id: `123456`,
  text: `Test from @sparanoid/eop-sender-telegram`
});

JSON.parse(resp.body).ok
//=> true

License

AGPL-3.0

Readme

Keywords

Package Sidebar

Install

npm i @sparanoid/eop-sender-telegram

Weekly Downloads

24

Version

1.10.23

License

AGPL-3.0-or-later

Unpacked Size

42.9 kB

Total Files

7

Last publish

Collaborators

  • sparanoid