Files
abot/wechat_ipad/models/appmsg_xml.py
2026-01-22 17:55:41 +08:00

409 lines
10 KiB
Python

LINK_XML_WELCOME = """
<appmsg appid="" sdkver="1">
<title>👏欢迎 {nickname} 加入群聊!🎉</title>
<des>⌚时间:{now}</des>
<action>view</action>
<type>5</type>
<showtype>0</showtype>
<content />
<url>https://mp.weixin.qq.com/s/BGw5aU2glF7RjLsIq9Htyg</url>
<dataurl />
<lowurl />
<lowdataurl />
<recorditem />
<thumburl>{head_url}</thumburl>
<messageaction />
<laninfo />
<extinfo />
<sourceusername />
<sourcedisplayname />
<commenturl />
<appattach>
<totallen>0</totallen>
<attachid />
<emoticonmd5 />
<fileext />
<aeskey />
</appattach>
<webviewshared>
<publisherId />
<publisherReqId>0</publisherReqId>
</webviewshared>
<weappinfo>
<pagepath />
<username />
<appid />
<appservicetype>0</appservicetype>
</weappinfo>
<websearch />
</appmsg>
<fromusername>Jyunere</fromusername>
<scene>0</scene>
<appinfo>
<version>1</version>
<appname></appname>
</appinfo>
<commenturl></commenturl>
"""
MUSIC_XML = """
<appmsg appid="wx45116b30f23e0cc4" sdkver="0">
<title>{song_name}</title>
<des>{singer_name}-点击三角直接播放</des>
<action>view</action>
<type>3</type>
<showtype>0</showtype>
<content />
<url>{data_url}</url>
<dataurl>{play_url}</dataurl>
<lowurl/>
<lowdataurl/>
<recorditem />
<thumburl />
<messageaction />
<laninfo />
<extinfo />
<sourceusername />
<sourcedisplayname />
<commenturl />
<appattach>
<totallen>0</totallen>
<attachid />
<emoticonmd5></emoticonmd5>
<fileext />
<aeskey></aeskey>
</appattach>
<webviewshared>
<shareUrlOriginal/>
<shareUrlOpen/>
<jsAppId/>
<publisherId/>
<publisherReqId/>
</webviewshared>
<weappinfo>
<username/>
<appid/>
<appservicetype>0</appservicetype>
<secflagforsinglepagemode>0</secflagforsinglepagemode>
<videopageinfo>
<thumbwidth>0</thumbwidth>
<thumbheight>0</thumbheight>
<fromopensdk>0</fromopensdk>
</videopageinfo>
</weappinfo>
<websearch />
<songalbumurl>{singer_pic}</songalbumurl>
</appmsg>
<scene>0</scene>
<fromusername>wxid_72ow1edm3kea22</fromusername>
<appinfo>
<version>1</version>
<appname/>
</appinfo>
<commenturl />
"""
LINK_XML_NORMAL = """
<appmsg appid="" sdkver="1">
<title>{title}</title>
<des>{des}</des>
<action>view</action>
<type>5</type>
<showtype>0</showtype>
<content />
<url>{url}</url>
<dataurl />
<lowurl />
<lowdataurl />
<recorditem />
<thumburl>{thumburl}</thumburl>
<messageaction />
<laninfo />
<extinfo />
<sourceusername />
<sourcedisplayname />
<commenturl />
<appattach>
<totallen>0</totallen>
<attachid />
<emoticonmd5 />
<fileext />
<aeskey />
</appattach>
<webviewshared>
<publisherId />
<publisherReqId>0</publisherReqId>
</webviewshared>
<weappinfo>
<pagepath />
<username />
<appid />
<appservicetype>0</appservicetype>
</weappinfo>
<websearch />
</appmsg>
<fromusername>Jyunere</fromusername>
<scene>0</scene>
<appinfo>
<version>1</version>
<appname></appname>
</appinfo>
<commenturl></commenturl>
"""
VIDEO_XML_MESSAGE = """
<appmsg appid="" sdkver="1">
<title>{title}-点击直接观看</title>
<des>{des}</des>
<action />
<type>5</type>
<showtype>0</showtype>
<soundtype>0</soundtype>
<mediatagname />
<messageext />
<messageaction />
<content />
<contentattr>0</contentattr>
<url>{url}</url>
<lowurl />
<dataurl />
<lowdataurl />
<songalbumurl />
<songlyric />
<appattach>
<totallen>0</totallen>
<attachid />
<emoticonmd5 />
<fileext />
<cdnthumbaeskey />
<aeskey />
</appattach>
<extinfo />
<sourceusername />
<sourcedisplayname />
<thumburl>{thumburl}</thumburl>
<md5 />
<statextstr />
<directshare>0</directshare>
</appmsg>
<fromusername>wxid_qf7oo9svlxb212</fromusername>
<scene>0</scene>
<appinfo>
<version>1</version>
<appname></appname>
</appinfo>
<commenturl></commenturl>
"""
LINK_XML_NEWS = """
<appmsg appid="" sdkver="1">
<title>实时新闻热点</title>
<des>点击查看实时新闻热点</des>
<action>view</action>
<type>5</type>
<showtype>0</showtype>
<content />
<url>https://newsnow.busiyi.world/</url>
<dataurl />
<lowurl />
<lowdataurl />
<recorditem />
<thumburl>https://wx.qlogo.cn/mmhead/ver_1/PPkenIgsjuGSEsUNSwK1dQNLsvCK3x7HZftEbVVrVjIFYNGiaRmXGXGE30sqLXXFVw5mIPgibvRY6nbLh5svo7f2CVlAqJn4bfS20DQtqsRqBvQ46icvUyv3dM96XJIGFke/132</thumburl>
<messageaction />
<laninfo />
<extinfo />
<sourceusername />
<sourcedisplayname />
<commenturl />
<appattach>
<totallen>0</totallen>
<attachid />
<emoticonmd5 />
<fileext />
<aeskey />
</appattach>
<webviewshared>
<publisherId />
<publisherReqId>0</publisherReqId>
</webviewshared>
<weappinfo>
<pagepath />
<username />
<appid />
<appservicetype>0</appservicetype>
</weappinfo>
<websearch />
</appmsg>
<fromusername>Jyunere</fromusername>
<scene>0</scene>
<appinfo>
<version>1</version>
<appname></appname>
</appinfo>
<commenturl></commenturl>
"""
DOUYU_MESSAGE_XML = """
<appmsg appid="wx6be84d532f192698" sdkver="0">
<title>正在直播:{title},请点击观看</title>
<des>主播: {liver} </des>
<username />
<action>view</action>
<type>5</type>
<showtype>0</showtype>
<content />
<url>https://m.douyu.com/{roomid}?share_source=1&amp;dyshci=3&amp;app_type=and&amp;fromuid=251679944&amp;dyshid=f0054c8-618d0d36a18ce969bd03163400507111&amp;medium=wx&amp;dyshti=1769070814&amp;type=lv</url>
<lowurl />
<forwardflag>0</forwardflag>
<dataurl />
<lowdataurl />
<contentattr>0</contentattr>
<streamvideo>
<streamvideourl />
<streamvideototaltime>0</streamvideototaltime>
<streamvideotitle />
<streamvideowording />
<streamvideoweburl />
<streamvideothumburl />
<streamvideoaduxinfo />
<streamvideopublishid />
</streamvideo>
<canvasPageItem>
<canvasPageXml><![CDATA[]]></canvasPageXml>
</canvasPageItem>
<appattach></appattach>
<extinfo />
<androidsource>2</androidsource>
<thumburl>{thumburl}</thumburl>
<mediatagname />
<messageaction><![CDATA[]]></messageaction>
<messageext><![CDATA[]]></messageext>
<emoticongift>
<packageflag>0</packageflag>
<packageid />
</emoticongift>
<emoticonshared>
<packageflag>0</packageflag>
<packageid />
</emoticonshared>
<designershared>
<designeruin>0</designeruin>
<designername>null</designername>
<designerrediretcturl><![CDATA[null]]></designerrediretcturl>
</designershared>
<emotionpageshared>
<tid>0</tid>
<title>null</title>
<desc>null</desc>
<iconUrl><![CDATA[null]]></iconUrl>
<secondUrl />
<pageType>0</pageType>
<setKey>null</setKey>
</emotionpageshared>
<webviewshared>
<shareUrlOriginal />
<shareUrlOpen />
<jsAppId />
<publisherId />
<publisherReqId />
</webviewshared>
<template_id />
<md5>5a2d851cd5d8b6f13e628583c1ce9a9c</md5>
<websearch />
<weappinfo>
<username />
<appid />
<appservicetype>0</appservicetype>
<secflagforsinglepagemode>0</secflagforsinglepagemode>
<videopageinfo>
<thumbwidth>136</thumbwidth>
<thumbheight>136</thumbheight>
<fromopensdk>0</fromopensdk>
</videopageinfo>
</weappinfo>
<statextstr>GhQKEnd4NmJlODRkNTMyZjE5MjY5OA==</statextstr>
<musicShareItem>
<musicDuration>0</musicDuration>
</musicShareItem>
<finderLiveProductShare>
</finderLiveProductShare>
<finderOrder>
</finderOrder>
<finderShopWindowShare>
</finderShopWindowShare>
<findernamecard>
</findernamecard>
<finderGuarantee>
<scene><![CDATA[0]]></scene>
</finderGuarantee>
<directshare>0</directshare>
<gamecenter>
</gamecenter>
<patMsg>
<chatUser />
<records>
<recordNum>0</recordNum>
</records>
</patMsg>
<secretmsg>
<issecretmsg>0</issecretmsg>
</secretmsg>
<referfromscene>0</referfromscene>
<gameshare>
<liteappext>
<liteappbizdata />
<priority>0</priority>
</liteappext>
<appbrandext>
<litegameinfo />
<priority>-1</priority>
</appbrandext>
<gameshareid />
<sharedata />
<isvideo>0</isvideo>
<duration>-1</duration>
<isexposed>0</isexposed>
<readtext />
</gameshare>
<tingChatRoomItem>
<type>0</type>
<categoryItem>null</categoryItem>
<listenItem>null</listenItem>
</tingChatRoomItem>
<mpsharetrace>
<hasfinderelement>0</hasfinderelement>
</mpsharetrace>
<wxgamecard>
<framesetname />
<mbcarddata />
<minpkgversion />
<clientextinfo />
<mbcardheight>0</mbcardheight>
<isoldversion>0</isoldversion>
</wxgamecard>
<ecskfcard>
<framesetname />
<mbcarddata />
<minupdateunixtimestamp>0</minupdateunixtimestamp>
<needheader>false</needheader>
<summary />
</ecskfcard>
<liteapp>
<id>null</id>
<path />
<query />
<istransparent>0</istransparent>
<hideicon>0</hideicon>
<forbidforward>0</forbidforward>
</liteapp>
<opensdk_share_is_modified>0</opensdk_share_is_modified>
</appmsg>
<fromusername>Jyunere</fromusername>
<scene>0</scene>
<appinfo>
<version>30</version>
<appname>斗鱼</appname>
</appinfo>
<commenturl />
"""