微信机器人研究
收到好友请求
{
"api":1005,
"data":{
"StrTalker":"fmessage",
"Nick":"",
"StrContent":"<msgfromusername=\"wxid_dssg0pnw0kp622\"encryptusername=\"v3_020b3826fd03010000000000f7fb25870d1da2000000501ea9a3dba12f95f6b60a0536a1adb6801c80a0cb9f02cd3185d375a9f646b185be90a05ac425084bd86ef80c881545c2618f3b8b46a7e4eabba70d6d83e8c73a19bdb2bb74e8fff6ddc380@stranger\"fromnickname=\"12334\"content=\"我是12334\"fullpy=\"12334\"shortpy=\"12334\"imagestatus=\"4\"scene=\"3\"country=\"\"province=\"\"city=\"\"sign=\"\"percard=\"0\"sex=\"0\"alias=\"\"weibo=\"\"albumflag=\"0\"albumstyle=\"0\"albumbgimgid=\"\"snsflag=\"256\"snsbgimgid=\"\"snsbgobjectid=\"0\"mhash=\"12828485b107f2072dddce0018fb0313\"mfullhash=\"12828485b107f2072dddce0018fb0313\"bigheadimgurl=\"\"smallheadimgurl=\"\"ticket=\"v4_000b708f0b040000010000000000f49a7826ec8acf7369fc146867621000000050ded0b020927e3c97896a09d47e6e9e2d7678b49df8e74de642f214a189fd543f1ebe3dcba5890d94cc1787b2092b4c6d4af315c3a0d9a71c8b38f3e2731c47cf1c1c5ab3deb94a502a9cc82e93a63e4ca74ab2f75fab49a17ef7a89f7822861e040e6705e05de08c57f1591e5f9d0294d4fbb065d7560c@stranger\"opcode=\"2\"googlecontact=\"\"qrticket=\"\"chatroomusername=\"\"sourceusername=\"\"sourcenickname=\"\"sharecardusername=\"\"sharecardnickname=\"\"cardversion=\"\"extflag=\"0\"><brandlistcount=\"0\"ver=\"769112382\"></brandlist></msg>",
"MsgSource":"<msgsource>\n\t<signature>v1_oljcfIBc</signature>\n</msgsource>\n",
"CreateTime":1650944021,
"MsgLocalId":17270,
"MsgSvrID":"6332531387938291645",
"type":37,
"SubType":0,
"IsSender":0,
"BytesExtra":{
},
"msg":"callfromChatView.cpp"
},
"port":31367,
"pid":24776,
"wechatId":"wxid_t6vr9q19yey722"
}
同意好友
api 74
param1 文本 v3 XML中encryptusername值
param2 文本 v4 XML中ticket值
type 数字 添加类型 XML中scene值
相关资料:https://www.showdoc.com.cn/WeChatHelper/6494156674830992