From 50358f85c4a3abe06c267b94e801266891601c33 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 2 Jun 2021 14:52:09 +0800 Subject: [PATCH] update message type --- docs/team-messaging/manual/node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/team-messaging/manual/node.md b/docs/team-messaging/manual/node.md index 24971afc..6c22355b 100644 --- a/docs/team-messaging/manual/node.md +++ b/docs/team-messaging/manual/node.md @@ -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' }) } }