Skip to content

Commit

Permalink
update message type
Browse files Browse the repository at this point in the history
  • Loading branch information
onyas authored Jun 2, 2021
1 parent aca49c2 commit 50358f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/team-messaging/manual/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const createApp = require('ringcentral-chatbot/dist/apps').default

const handle = async event => {
const { type, text, group, bot } = event
if (type === 'Message4Bot' && text === 'ping') {
if (type === 'TextMessage' && text === 'ping') {
await bot.sendMessage(group.id, { text: 'pong' })
}
}
Expand Down

0 comments on commit 50358f8

Please sign in to comment.