Skip to content

Commit a7d6f0b

Browse files
committed
Add forwardMsg method
1 parent 4b2f7bb commit a7d6f0b

File tree

4 files changed

+285
-154
lines changed

4 files changed

+285
-154
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ npm run compile // babel编译
4747

4848
`node run-core.js`
4949

50-
逻辑见代码,简明完整
50+
逻辑见[代码](https://github.com/nodeWechat/wechat4u/blob/master/run-core.js),简明完整,一定要看
5151

5252
## 实例属性
5353

@@ -165,9 +165,13 @@ bot.uploadMedia(fs.createReadStream('test.png'))
165165

166166
对以上发送消息的方法的封装,是发送消息的通用方法
167167

168-
当msg为string时,发送文本消息
168+
`msg`为string时,发送文本消息
169169

170-
当msg为`{file:xxx,filename:'xxx.ext'}`时,发送对应媒体文件
170+
`msg``{file:xxx,filename:'xxx.ext'}`时,发送对应媒体文件
171+
172+
##### bot.forwardMsg(msg, toUserName)
173+
174+
转发消息,`msg``message`事件传递的`msg`对象
171175

172176
```javascript
173177
bot.sendMsg({

0 commit comments

Comments
 (0)