Closed zxdong262 closed 5 years ago
Not a problem, can be handled!
PersonsAdded
event is a special case of PostAdded
event.
You can take advantages of the catch-all event here: https://github.com/ringcentral/ringcentral-chatbot-js/blob/master/src/apps/bot.js#L44
await handle({ type: body.eventType, message })
And write some code like this:
if(event.type === 'PostAdded' && event.message.body.type === 'PersonsAdded') {
// ...
}
in bot webhook: