bottender
Advanced tools
Changelog
1.3.2 / 2020-03-20
messaging-api-line
.eslint-plugin-import
for --typescript
.dist
to .gitignore
for TypeScript (#697).Changelog
1.3.0 / 2020-03-06
import {
MessengerTypes,
WhatsappTypes,
LineTypes,
TelegramTypes,
SlackTypes,
ViberTypes,
} from 'bottender';
whatsapp
built on top of Twilio API for WhatsApp (#664):// bottender.config.js
module.exports = {
channels: {
whatsapp: {
enabled: true,
path: '/webhooks/whatsapp',
accountSid: process.env.WHATSAPP_ACCOUNT_SID,
authToken: process.env.WHATSAPP_AUTH_TOKEN,
phoneNumber: process.env.WHATSAPP_PHONE_NUMBER,
},
},
};
// bottender.config.js
module.exports = {
channels: {
slack: {
enabled: true,
path: '/webhooks/slack',
accessToken: process.env.SLACK_ACCESS_TOKEN,
signingSecret: process.env.SLACK_SIGNING_SECRET,
// verificationToken: process.env.SLACK_VERIFICATION_TOKEN, // deprecated, use signingSecret
},
},
};
async function App(context) {
if (context.event.isCommand) {
await context.sendText(
`I received slash command '${context.event.command}' with arguments: '${context.event.text}'`
);
}
}
messaging-api-line
to support narrowcast.bottender dev
(#654).bottender dev --inspect=HOST:PORT
(#656).Changelog
1.2.3 / 2020-03-04
Changelog
1.2.2 / 2020-02-24
Changelog
1.2.1 / 2020-02-13