@a-soul/sender-go-qchttp 中文文档教程
@a-soul/sender-telegram
将处理后的数据发送到 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
@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