Skip to content

Commit

Permalink
Merge pull request #142 from onyas/patch-1
Browse files Browse the repository at this point in the history
update message type
  • Loading branch information
byrnereese authored Jun 24, 2021
2 parents 900ffb3 + 50358f8 commit ed10952
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 ed10952

Please sign in to comment.