Skip to content

Commit 8d2f623

Browse files
committed
Update README doc for reply music
1 parent c8513cb commit 8d2f623

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ app.use('/wechat', wechat('some token', function (req, res, next) {
4343
} else if (message.FromUserName === 'hehe') {
4444
// 回复一段音乐
4545
res.reply({
46-
title: "来段音乐吧",
47-
description: "一无所有",
48-
musicUrl: "http://mp3.com/xx.mp3",
49-
hqMusicUrl: "http://mp3.com/xx.mp3"
46+
type: "music",
47+
content: {
48+
title: "来段音乐吧",
49+
description: "一无所有",
50+
musicUrl: "http://mp3.com/xx.mp3",
51+
hqMusicUrl: "http://mp3.com/xx.mp3"
52+
}
5053
});
5154
} else {
5255
// 回复高富帅(图文回复)

0 commit comments

Comments
 (0)