Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ res.reply({
}
});
```
### transfer user message to wechat customer service
transfer the message sent from wechat users to the Wechat Multi Customer Service
```js
res.transfer2CustomerService();
```

### Reply with device messages
Specific responses will be made as the message type is device_text or device_event.
```js
Expand All @@ -158,7 +164,7 @@ app.use('/wechat', wechat(config, function (req, res, next) {
// device text
res.reply('This message will be pushed onto the device.');
} else if (message.MsgType === 'device_event') {
if (message.Event === 'subscribe_status' ||
if (message.Event === 'subscribe_status' ||
message.Event === 'unsubscribe_status') {
//subscribe or unsubscribe the WIFI device status,the reply should be 1 or 0
res.reply(1);
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,14 @@ res.reply({
MessageAction: 'ranklist'
}
});

```
### 将用户消息转发到多客服
将普通微信用户向公众号发的消息,转发到多客服系统
```js
res.transfer2CustomerService();
```

### 回复设备消息
模块可以对类型为device_text或device_event的消息作出特定格式的响应.
```js
Expand Down