wechaty-web-panel 1.6.114 → 1.6.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -297,6 +297,14 @@ async function dispatchFriendFilterByMsgType(that, msg) {
297
297
  console.log(`发消息人${await contact.name()}: 发起一个转账,请在手机接收`);
298
298
  console.log('内容', msg.payload);
299
299
  break;
300
+ case that.Message.Type.Channel:
301
+ console.log(`发消息人${await contact.name()}: 收到一个视频号消息`);
302
+ const channelInfo = await msg.toChannel();
303
+ if (config.parseMini && channelInfo.payload) {
304
+ const channelParse = `【视频号解析】${eol}${eol}oid:${channelInfo.payload?.objectId}${eol}nid:${channelInfo.payload?.objectNonceId}`;
305
+ contact.say(channelParse);
306
+ }
307
+ break;
300
308
  default:
301
309
  break;
302
310
  }
@@ -604,6 +612,14 @@ async function dispatchRoomFilterByMsgType(that, room, msg) {
604
612
  console.log(`群名: ${roomName} 发消息人: ${contactName} 发起了转账,请在手机查看`);
605
613
  console.log('内容', msg.payload);
606
614
  break;
615
+ case that.Message.Type.Channel:
616
+ console.log(`群名: ${roomName} 发消息人: ${contactName}: 收到一个视频号消息`);
617
+ const channelInfo = await msg.toChannel();
618
+ if (config.parseMiniRooms.includes(roomName) && channelInfo.payload) {
619
+ const channelParse = `【视频号解析】${eol}${eol}oid:${channelInfo.payload?.objectId}${eol}nid:${channelInfo.payload?.objectNonceId}`;
620
+ room.say(channelParse);
621
+ }
622
+ break;
607
623
  default:
608
624
  break;
609
625
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const packageJson = {
5
5
  "name": "wechaty-web-panel",
6
- "version": "1.6.114",
6
+ "version": "1.6.115",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wechaty-web-panel",
3
- "version": "1.6.114",
3
+ "version": "1.6.115",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/index.js"
@@ -298,6 +298,14 @@ async function dispatchFriendFilterByMsgType(that, msg) {
298
298
  console.log(`发消息人${await contact.name()}: 发起一个转账,请在手机接收`)
299
299
  console.log('内容', msg.payload)
300
300
  break
301
+ case that.Message.Type.Channel:
302
+ console.log(`发消息人${await contact.name()}: 收到一个视频号消息`)
303
+ const channelInfo = await msg.toChannel();
304
+ if (config.parseMini && channelInfo.payload) {
305
+ const channelParse = `【视频号解析】${eol}${eol}oid:${channelInfo.payload?.objectId}${eol}nid:${channelInfo.payload?.objectNonceId}`
306
+ contact.say(channelParse)
307
+ }
308
+ break
301
309
  default:
302
310
  break
303
311
  }
@@ -611,6 +619,14 @@ async function dispatchRoomFilterByMsgType(that, room, msg) {
611
619
  console.log(`群名: ${roomName} 发消息人: ${contactName} 发起了转账,请在手机查看`)
612
620
  console.log('内容', msg.payload)
613
621
  break
622
+ case that.Message.Type.Channel:
623
+ console.log(`群名: ${roomName} 发消息人: ${contactName}: 收到一个视频号消息`)
624
+ const channelInfo = await msg.toChannel();
625
+ if (config.parseMiniRooms.includes(roomName) && channelInfo.payload) {
626
+ const channelParse = `【视频号解析】${eol}${eol}oid:${channelInfo.payload?.objectId}${eol}nid:${channelInfo.payload?.objectNonceId}`
627
+ room.say(channelParse)
628
+ }
629
+ break
614
630
  default:
615
631
  break
616
632
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const packageJson = {
5
5
  "name": "wechaty-web-panel",
6
- "version": "1.6.114",
6
+ "version": "1.6.115",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js"