撤回消息事件
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>撤回消息事件</li>
</ul>
<h5>通过该接口配置回调接收的URL后才会推送消息给你</h5>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>post的内容</h5>
<p>自己撤回</p>
<pre><code>{
&quot;ServerPort&quot;:&quot;30001&quot;,
&quot;selfwxid&quot;:&quot;wxid_38ze.....&quot;,
&quot;sendorrecv&quot;:&quot;2&quot;,
&quot;msgnumber&quot;:&quot;1&quot;,
&quot;msglist&quot;:[{
&quot;index&quot;:&quot;1&quot;,
&quot;time&quot;:&quot;2023-08-08 00:53:54&quot;,
&quot;msgtype&quot;:&quot;10002&quot;,
&quot;msgsvrid&quot;:&quot;3552910104&quot;,
&quot;realmsgsvrid&quot;:&quot;3552910104&quot;,
&quot;msg&quot;:&quot;&lt;sysmsg type=\&quot;revokemsg\&quot;&gt;&lt;revokemsg&gt;&lt;session&gt;34639...@chatroom&lt;/session&gt;&lt;msgid&gt;1196951111&lt;/msgid&gt;&lt;newmsgid&gt;4600650815041467804&lt;/newmsgid&gt;&lt;replacemsg&gt;&lt;![CDATA[你撤回了一条消息]]&gt;&lt;/replacemsg&gt;&lt;/revokemsg&gt;&lt;/sysmsg&gt;&quot;,
&quot;revoke_msg&quot;:&quot;&quot;,
&quot;fromtype&quot;:&quot;1&quot;,
&quot;fromid&quot;:&quot;wxid_38z....&quot;,
&quot;fromname&quot;:&quot;&quot;,
&quot;toid&quot;:&quot;34639...@chatroom&quot;,
&quot;toname&quot;:&quot;bba&quot;
}]
}</code></pre>
<p>其他人撤回</p>
<pre><code>{
&quot;ServerPort&quot;:&quot;30001&quot;,
&quot;selfwxid&quot;:&quot;wxid_38z...&quot;,
&quot;sendorrecv&quot;:&quot;2&quot;,
&quot;msgnumber&quot;:&quot;1&quot;,
&quot;msglist&quot;:[{
&quot;index&quot;:&quot;1&quot;,
&quot;time&quot;:&quot;2023-08-08 00:55:53&quot;,
&quot;msgtype&quot;:&quot;10002&quot;,
&quot;msgsvrid&quot;:&quot;3177156720089871467&quot;,
&quot;realmsgsvrid&quot;:&quot;3177156720089871467&quot;,
&quot;msg&quot;:&quot;&lt;sysmsg type=\&quot;revokemsg\&quot;&gt;&lt;revokemsg&gt;&lt;session&gt;3463...@chatroom&lt;/session&gt;&lt;msgid&gt;1621661336&lt;/msgid&gt;&lt;newmsgid&gt;3165906829707777684&lt;/newmsgid&gt;&lt;replacemsg&gt;&lt;![CDATA[\&quot;Xed\&quot; 撤回了一条消息]]&gt;&lt;/replacemsg&gt;&lt;announcement_id&gt;&lt;![CDATA[]]&gt;&lt;/announcement_id&gt;&lt;/revokemsg&gt;&lt;/sysmsg&gt;&quot;,
&quot;revoke_msg&quot;:&quot;老&quot;,
&quot;fromtype&quot;:&quot;2&quot;,
&quot;fromgid&quot;:&quot;34639...@chatroom&quot;,
&quot;fromgname&quot;:&quot;\\u0057\\u0068\\u0079&quot;,
&quot;fromid&quot;:&quot;wxid_kqi...&quot;,
&quot;fromname&quot;:&quot;&quot;,
&quot;toid&quot;:&quot;wxid_38...&quot;,
&quot;toname&quot;:&quot;&quot;
}]
}
</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">ServerPort</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>发送消息的端口默认30001,如果是30002则代表第二个微信</td>
</tr>
<tr>
<td style="text-align: left;">selfwxid</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>本人微信ID</td>
</tr>
<tr>
<td style="text-align: left;">sendorrecv</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>1=收到的消息 2=发送的消息</td>
</tr>
<tr>
<td style="text-align: left;">msgnumber</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>本次收到/发送的消息数量</td>
</tr>
<tr>
<td style="text-align: left;">time</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>收到消息的时间</td>
</tr>
<tr>
<td style="text-align: left;">msgtype</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>消息类型代码</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>消息内容</td>
</tr>
<tr>
<td style="text-align: left;">fromtype</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>个人消息 = 1 群消息=2</td>
</tr>
<tr>
<td style="text-align: left;">fromwxid</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>发送方微信ID</td>
</tr>
<tr>
<td style="text-align: left;">toid</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>接收人微信ID/群ID</td>
</tr>
<tr>
<td style="text-align: left;">msgsvrid</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>服务器消息ID</td>
</tr>
</tbody>
</table>
<h2>msgtype 消息类型代码 二级代码参考:</h2>
<p>10002 撤回消息</p>