Giter VIP home page Giter VIP logo

Comments (2)

bestK avatar bestK commented on May 29, 2024

🖕 直接鄙视楼上两个

 xmlMsg.content = `<?xml version="1.0"?>
      <msg>
              <appmsg appid="wx5aa333606550dfd5" sdkver="0">
                      <title>嘉宾</title>
                      <des>张远</des>
                      <action>view</action>
                      <type>3</type>
                      <showtype>0</showtype>
                      <content />
                      <url>https://i.y.qq.com/v8/playsong.html?hosteuin=oK6kowEAoK4z7eSqoi6F7iCPon**&amp;sharefrom=&amp;from_id=0&amp;from_idtype=0&amp;from_name=&amp;songid=281506863&amp;songmid=&amp;type=0&amp;platform=(10rpl)&amp;appsongtype=(11rpl)&amp;_wv=1&amp;source=qq&amp;appshare=iphone&amp;media_mid=000CsplS4eA2jd&amp;ADTAG=wxfshare</url>
                      <dataurl>http://c6.y.qq.com/rsc/fcgi-bin/fcg_pyq_play.fcg?songid=0&amp;songmid=001i36ji0C8Cov&amp;songtype=1&amp;fromtag=46&amp;uin=1152921504793187640&amp;code=c135e</dataurl>
                      <lowurl />
                      <lowdataurl />
                      <recorditem>(null)</recorditem>
                      <thumburl />
                      <messageaction />
                      <laninfo />
                      <md5>aa6e1c793929a0edfdda69aed5906c58</md5>
                      <extinfo />
                      <sourceusername />
                      <sourcedisplayname />
                      <commenturl />
                      <appattach>
                              <totallen>0</totallen>
                              <attachid />
                              <emoticonmd5 />
                              <fileext>jpg</fileext>
                              <filekey>9bb604b62db7008a6c269937ef1a2623</filekey>
                              <cdnthumburl>3057020100044b30490201000204fbbf095802032f5aa90204d1996971020464d335da042437623063666463352d393037392d343163392d383831372d3064343633353238626230390204011808030201000405004c537500</cdnthumburl>
                              <aeskey>58ed62307de144f5bd0e9c6378fa94bb</aeskey>
                              <cdnthumbaeskey>58ed62307de144f5bd0e9c6378fa94bb</cdnthumbaeskey>
                              <encryver>1</encryver>
                              <cdnthumblength>6571</cdnthumblength>
                              <cdnthumbheight>100</cdnthumbheight>
                              <cdnthumbwidth>100</cdnthumbwidth>
                      </appattach>
                      <weappinfo>
                              <pagepath />
                              <username />
                              <appid />
                              <appservicetype>0</appservicetype>
                      </weappinfo>
                      <websearch />
              </appmsg>
              <fromusername>xxxx</fromusername>
              <scene>0</scene>
              <appinfo>
                      <version>53</version>
                      <appname>QQ音乐</appname>
              </appinfo>
              <commenturl></commenturl>
      </msg>`

      // 利用消息转发 debug 可知此消息类型为 49,直接构造 xml 调用 forwardMessage 接口即可
      await bot.puppet.messageForward(talker.id, message.id)
      const response = await bot.puppet._client.api.forwardMessage(new Date().getTime(), talker.id, xmlMsg.content, 49, talker.id);

image

from puppet-padlocal.

bestK avatar bestK commented on May 29, 2024

image
想不明白这种操作,是怕别人知道了?

from puppet-padlocal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.