@a-soul/sender-go-qchttp

1.5.2 • Public • Published

@a-soul/sender-telegram

Send processed data to Telegram

Features

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

Usage

import send from '@a-soul/sender-telegram';

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

const resp = await send(options, {
  chat_id: `1234567`,
  text: `Test from @a-soul/sender-telegram`
});

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

License

AGPL-3.0

Readme

Keywords

Package Sidebar

Install

npm i @a-soul/sender-go-qchttp

Weekly Downloads

1

Version

1.5.2

License

AGPL-3.0-or-later

Unpacked Size

49.2 MB

Total Files

30

Last publish

Collaborators

  • sparanoid