@a-soul/sender-telegram 中文文档教程
@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
更多
你可能也喜欢
- 19json-validator 中文文档教程
- 4hoofs-react-cron-builder 中文文档教程
- 8chan 中文文档教程
- 9c-lord-backend 中文文档教程
- @0x-lerna-fork/clean 中文文档教程
- @12stonechurch/react-native-material-initials 中文文档教程
- @3dwayfinder/scrollarea 中文文档教程
- @4geit/rct-search-input-component 中文文档教程
- @51npm/freedom-middleware-ossupload 中文文档教程
- @54696d654a6f6c74/html-injector 中文文档教程