Files
abot/wechat_ipad/models/appmsg_xml.py
2026-01-09 14:03:24 +08:00

244 lines
5.5 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>
"""