wechaty / wechaty-puppet-padplus

DEPRECATED: One puppet based on iPad protocal for Wechaty
https://wechaty.js.org/docs/puppet-services/
313 stars 64 forks source link

Type 8 messages #311

Open suntong opened 3 years ago

suntong commented 3 years ago

Is your feature request related to a problem? Please describe.

wechaty-puppet-padplus able to deal with type 8 messages.

Describe the solution you'd like

Type 8 messages properly handled, instead of leaving them as raw xml strings.

Describe alternatives you've considered

No.

Additional context

Here are two examples of type 8 messages:

<?xml version="1.0"?>
<msg>
 <appmsg appid="" sdkver="0">
  <title />
  <des />
  <action />
  <type>8</type>
  <showtype>0</showtype>
  <soundtype>0</soundtype>
  <mediatagname />
  <messageext />
  <messageaction />
  <content />
  <contentattr>0</contentattr>
  <url />
  <lowurl />
  <dataurl />
  <lowdataurl />
  <songalbumurl />
  <songlyric />
  <appattach>
   <totallen>8494811</totallen>
   <attachid>0:0:18807ca09284f35451fbc325d1cee656</attachid>
   <emoticonmd5>18807ca09284f35451fbc325d1cee656</emoticonmd5>
   <fileext>pic</fileext>
   <cdnthumbaeskey>64747868787479786d65647079726775</cdnthumbaeskey>
   <aeskey></aeskey>
   <cdnthumburl>3063020100045c305a020100020487aee45d02033d11fd02044dad973d02045f5851290435323439343239313732335f3731383936313239365f37623564303239323462343262623035326631306330626264363432666533370204010408030201000400</cdnthumburl>
   <cdnthumblength>12708</cdnthumblength>
   <cdnthumbwidth>300</cdnthumbwidth>
   <cdnthumbheight>155</cdnthumbheight>
   <cdnthumbmd5>7b5d02924b42bb052f10c0bbd642fe37</cdnthumbmd5>
  </appattach>
  <extinfo />
  <sourceusername />
  <sourcedisplayname />
  <thumburl />
  <md5 />
  <statextstr />
  <directshare>0</directshare>
 </appmsg>
 <fromusername>wxid_kw...n22</fromusername>
 <scene>0</scene>
 <appinfo>
  <version>1</version>
  <appname />
 </appinfo>
 <commenturl />
</msg>
<?xml version="1.0"?>
<msg>
 <appmsg appid="" sdkver="0">
  <title />
  <des />
  <action />
  <type>8</type>
  <showtype>0</showtype>
  <soundtype>0</soundtype>
  <mediatagname />
  <messageext />
  <messageaction />
  <content />
  <contentattr>0</contentattr>
  <url />
  <lowurl />
  <dataurl />
  <lowdataurl />
  <songalbumurl />
  <songlyric />
  <appattach>
   <totallen>3659450</totallen>
   <attachid>0:0:6fbfc6e1163baca5658707f4b0af9888</attachid>
   <emoticonmd5>6fbfc6e1163baca5658707f4b0af9888</emoticonmd5>
   <fileext>pic</fileext>
   <cdnthumbaeskey>696b7a6576736b666a756e7571757773</cdnthumbaeskey>
   <aeskey></aeskey>
   <cdnthumburl>3063020100045c305a020100020487aee45d02033d11fd0204e73e5b6502045f5853390435323439343239313732335f3637333430323835315f30353734643032323064326334373034656563323331313566356262626438350204010408030201000400</cdnthumburl>
   <cdnthumblength>16966</cdnthumblength>
   <cdnthumbwidth>300</cdnthumbwidth>
   <cdnthumbheight>155</cdnthumbheight>
   <cdnthumbmd5>0574d0220d2c4704eec23115f5bbbd85</cdnthumbmd5>
  </appattach>
  <extinfo />
  <sourceusername />
  <sourcedisplayname />
  <thumburl />
  <md5 />
  <statextstr />
  <directshare>0</directshare>
 </appmsg>
 <fromusername>wxid_kw...n22</fromusername>
 <scene>0</scene>
 <appinfo>
  <version>1</version>
  <appname />
 </appinfo>
 <commenturl />
</msg>

[enhancement]

su-chang commented 3 years ago

Could you share the screenshot about this type of message, and make us know which kinds of message it belongs, so that we could support it as soon as possible. Thank you.

suntong commented 3 years ago

OK.

Just that my phone has died, and all I'm seeing is from the console log of what I'm receiving. I'm in the process of buying a new phone, which might take a month or two to get it shipped here all the way from China. Will do after I got the new phone.