@sparanoid/eop-sender-go-qchttp
v1.10.6
Published
Send processed data to go-qchttp
Downloads
15
Readme
@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