messaging-api-line
- [new] Added support for broadcast API:
await client.broadcast([
{
type: 'text',
text: 'Hello, world1',
},
]);
- [new] Added
.getBotInfo()
:
await client.getBotInfo();
// {
// "userId": "Ub9952f8...",
// "basicId": "@216ru...",
// "displayName": "Example name",
// "pictureUrl": "https://obs.line-apps.com/...",
// "chatMode": "chat",
// "markAsReadMode": "manual"
// }
- [new] Added support for webhook APIs:
await client.getWebhookEndpointInfo();
// {
// "endpoint": "https://example.com/test",
// "active": true
// }
await client.setWebhookEndpointUrl('https://www.example.com/callback');
await client.testWebhookEndpoint();
// {
// "success": true,
// "timestamp": "2020-09-30T05:38:20.031Z",
// "statusCode": 200,
// "reason": "OK",
// "detail": "200"
// }