wechaty / puppet-supports

Wechaty Puppet Services (WPS)
https://wechaty.js.org/docs/puppet-services/
Apache License 2.0
33 stars 4 forks source link

Rock: 发群公告中的mentionIdList为 ["announcement@all"] ,应该改为所有member的id列表 #25

Open su-chang opened 3 years ago

su-chang commented 3 years ago
17:37:34 VERB PuppetHostie roomAnnounce(17424333275@chatroom, Announcement By Bot 22)
17:37:36 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_MESSAGE(2), payload:"{"messageId":"1696775206"}"})
"onGrpcStreamEvent(EVENT_TYPE_MESSAGE)"
17:37:36 SILL Wechaty memoryCheck() free: 211 MB, require: 4 MB
17:37:36 VERB Message static load(1696775206)
17:37:36 VERB Message constructor(1696775206) for class WechatifiedMessage
17:37:36 VERB Message ready()
17:37:36 VERB Puppet messagePayload(1696775206)
17:37:36 SILL Puppet messagePayloadCache(1696775206) cache MISS
17:37:36 VERB PuppetHostie messageRawPayload(1696775206)
17:37:36 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_DIRTY(27), payload:"{"payloadType":3,"payloadId":"17424333275@chatroom"}"})
"onGrpcStreamEvent(EVENT_TYPE_DIRTY)"
17:37:36 SILL Wechaty memoryCheck() free: 211 MB, require: 4 MB
17:37:36 VERB Room ready()
17:37:36 VERB Puppet dirtyPayload(Room<3>, 17424333275@chatroom)
17:37:36 VERB Puppet dirtyPayloadRoom(17424333275@chatroom)
17:37:36 SILL Puppet messagePayload(1696775206) cache SET
17:37:36 VERB Room ready()
17:37:36 SILL Contact ready() @ Puppet#0<PuppetHostie>() with id="wxid_8kg1wdu3jvk322"
17:37:36 SILL Contact ready() isReady() true

      ============================================
      on message : {"domain":null,"_events":{},"_eventsCount":0,"id":"1696775206","payload":{"filename":"","fromId":"wxid_8kg1wdu3jvk322","id":"1696775206","mentionIdList":["announcement@all"],"roomId":"17424333275@chatroom","text":"Announcement By Bot 22","timestamp":1607074654,"toId":"","type":7}}, message type: 7
      text: Announcement By Bot 22
      from: Contact<疫情小助手>
      room: Room<loading...>
      ============================================
huan commented 3 years ago

@jcai Could you please share the raw payload from the pad protocol so that we can learn the presentation of the @all in from the WeChat system?