import{_ as t,c as n,a,o as l}from"./app-Dgsdh8A6.js";const e={};function d(o,s){return l(),n("div",null,s[0]||(s[0]=[a(`<h1 id="消息设置" tabindex="-1"><a class="header-anchor" href="#消息设置"><span>消息设置</span></a></h1><h2 id="获取用户偏好设置" tabindex="-1"><a class="header-anchor" href="#获取用户偏好设置"><span>获取用户偏好设置</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/link_setting/v1/link_setting/get" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/link_setting/v1/link_setting/get</a></p></blockquote><p><em>请求方式：GET 或 POST</em></p><p>认证方式：Cookie（SESSDATA）</p><p><strong>url参数（GET）或 正文参数（application/x-www-form-urlencoded，POST）：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>msg_notify</td><td>num</td><td>是否显示 “消息提醒” 设置</td><td>非必要</td><td>若此项为任意整数，则返回数据中有 <code>msg_notify</code> 项</td></tr><tr><td>show_unfollowed_msg</td><td>num</td><td>是否显示 “收起未关注人消息” 设置</td><td>非必要</td><td>若此项为任意整数，则返回数据中有 <code>show_unfollowed_msg</code> 项</td></tr><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr><tr><td>csrf_token</td><td>str</td><td>CSRF Token（位于cookie）</td><td>POST方式必要</td><td></td></tr><tr><td>csrf</td><td>str</td><td>CSRF Token（位于cookie）</td><td>POST方式必要</td><td></td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录</td></tr><tr><td>msg</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td></td></tr></tbody></table><p><code>data</code> 对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>show_unfollowed_msg</td><td>num</td><td>收起未关注人消息</td><td>请求参数 <code>show_unfollowed_msg</code> 为整数时显示此项<br>0：不收起<br>1：收起</td></tr><tr><td>msg_notify</td><td>num</td><td>消息提醒</td><td>请求参数 <code>msg_notify</code> 为整数时显示此项<br>1：接收<br>3：不接收</td></tr><tr><td>set_like</td><td>num</td><td>收到的赞提醒（旧）</td><td>0：接收<br>5：不接收</td></tr><tr><td>set_comment</td><td>num</td><td>回复我的提醒（旧）</td><td>0：所有人<br>1：关注的人<br>2：不接受任何消息提醒</td></tr><tr><td>set_at</td><td>num</td><td>@ 我的提醒 （旧）</td><td>0：所有人<br>1：关注的人<br>2：不接受任何消息提醒</td></tr><tr><td>is_group_fold</td><td>num</td><td>收起应援团消息</td><td>0：不收起<br>1：收起</td></tr><tr><td>should_receive_group</td><td>num</td><td>接收应援团消息</td><td>0：不接收<br>1：接收</td></tr><tr><td>receive_unfollow_msg</td><td>num</td><td>接收未关注人消息</td><td>前端隐藏此开关<br>0：不接收<br>1：接收</td></tr><tr><td>followed_reply</td><td>num</td><td>被关注回复</td><td>0：关闭<br>1：开启</td></tr><tr><td>keys_reply</td><td>num</td><td>关键词回复</td><td>0：关闭<br>1：开启</td></tr><tr><td>recv_reply</td><td>num</td><td>收到消息回复</td><td>0：关闭<br>1：开启</td></tr><tr><td>voyage_reply</td><td>num</td><td>大航海上船回复</td><td>0：关闭<br>1：开启</td></tr><tr><td>recommend_followed_reply</td><td>num</td><td>被关注时自动推送作品</td><td>0：关闭<br>1：开启</td></tr><tr><td>ai_intercept</td><td>num</td><td>私信智能拦截</td><td>0：关闭<br>1：开启</td></tr><tr><td>anti_harassment</td><td>null</td><td>防骚扰和互动人群设置</td><td>此接口恒返回 <code>null</code></td></tr><tr><td>set_recv_reply</td><td>num</td><td>回复与@提醒（新）</td><td>0：所有人<br>1：关注的人<br>2：不接受任何消息提醒</td></tr><tr><td>set_recv_like</td><td>num</td><td>收到喜欢提醒（新）</td><td>0：接收<br>2：不接收</td></tr><tr><td>set_new_follow</td><td>num</td><td>新增粉丝提醒（新）</td><td>0：接收<br>2：不接收</td></tr></tbody></table><p><strong>示例：</strong></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/link_setting/v1/link_setting/get&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;msg_notify=1&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;show_unfollowed_msg=1&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;show_unfollowed_msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;msg_notify&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;set_like&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;set_comment&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;set_at&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;is_group_fold&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;should_receive_group&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;receive_unfollow_msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;followed_reply&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;keys_reply&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;recv_reply&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;voyage_reply&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;recommend_followed_reply&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;ai_intercept&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;anti_harassment&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">null</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;set_recv_reply&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;set_recv_like&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;set_new_follow&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span></span>
<span class="line"><span style="color:#D4D4D4;">  }</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="修改用户偏好设置" tabindex="-1"><a class="header-anchor" href="#修改用户偏好设置"><span>修改用户偏好设置</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/link_setting/v1/link_setting/set" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/link_setting/v1/link_setting/set</a></p></blockquote><p><em>请求方式：POST</em></p><p>认证方式：Cookie（SESSDATA）</p><p>参数名称与值基本同「<a href="#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E5%81%8F%E5%A5%BD%E8%AE%BE%E7%BD%AE">获取用户偏好设置</a>」中的 <code>data</code> 对象，修改设置时只需提供修改的设置对应的参数即可</p><p>开启自动回复功能需要 1000 粉丝及以上，否则会提示 700009 <code>权限不足</code></p><p><strong>正文参数（application/x-www-form-urlencoded）：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>show_unfollowed_msg</td><td>num</td><td>收起未关注人消息</td><td>非必要</td><td>0：不收起<br>1：收起</td></tr><tr><td>msg_notify</td><td>num</td><td>消息提醒</td><td>非必要</td><td>1：接收<br>3：不接收</td></tr><tr><td>set_like</td><td>num</td><td>收到的赞提醒</td><td>非必要</td><td>0：接收<br>5：不接收</td></tr><tr><td>set_comment</td><td>num</td><td>回复我的提醒</td><td>非必要</td><td>0：所有人<br>1：关注的人<br>2：不接受任何消息提醒</td></tr><tr><td>set_at</td><td>num</td><td>@ 我的提醒</td><td>非必要</td><td>0：所有人<br>1：关注的人<br>2：不接受任何消息提醒</td></tr><tr><td>is_group_fold</td><td>num</td><td>收起应援团消息</td><td>非必要</td><td>0：不收起<br>1：收起</td></tr><tr><td>should_receive_group</td><td>num</td><td>接收应援团消息</td><td>非必要</td><td>0：不接收<br>1：接收</td></tr><tr><td>receive_unfollow_msg</td><td>num</td><td>接收未关注人消息</td><td>非必要</td><td>0：不接收<br>1：接收</td></tr><tr><td>followed_reply</td><td>num</td><td>被关注回复</td><td>非必要</td><td>需要有自动回复权限<br>0：关闭<br>1：开启</td></tr><tr><td>keys_reply</td><td>num</td><td>关键词回复</td><td>非必要</td><td>需要有自动回复权限<br>0：关闭<br>1：开启</td></tr><tr><td>recv_reply</td><td>num</td><td>收到消息回复</td><td>非必要</td><td>需要有自动回复权限<br>0：关闭<br>1：开启</td></tr><tr><td>voyage_reply</td><td>num</td><td>大航海上船回复</td><td>非必要</td><td>需要有自动回复权限<br>0：关闭<br>1：开启</td></tr><tr><td>recommend_followed_reply</td><td>num</td><td>被关注时自动推送作品</td><td>非必要</td><td>需要有自动回复权限<br>0：关闭<br>1：开启</td></tr><tr><td>ai_intercept</td><td>num</td><td>私信智能拦截</td><td>非必要</td><td>0：关闭<br>1：开启</td></tr><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr><tr><td>csrf_token</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr><tr><td>csrf</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录<br>2：非法参数<br>700009：权限不足</td></tr><tr><td>msg</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td>空对象</td></tr></tbody></table><p><strong>示例：</strong></p><p>开启接收消息提醒</p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/link_setting/v1/link_setting/set&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;msg_notify=1&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;build=0&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;mobi_app=web&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf_token=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {}</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="获取消息屏蔽词" tabindex="-1"><a class="header-anchor" href="#获取消息屏蔽词"><span>获取消息屏蔽词</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/x/im/link_setting/get_block_words" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/x/im/link_setting/get_block_words</a></p></blockquote><p><em>请求方式：GET</em></p><p>认证方式：Cookie（SESSDATA）</p><p><strong>url参数：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录</td></tr><tr><td>msg</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td></td></tr></tbody></table><p><code>data</code> 对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>words</td><td>有效时：array<br>无效时：null</td><td>消息屏蔽词列表</td><td></td></tr><tr><td>message</td><td>str</td><td>（？）</td><td><strong>作用尚不明确</strong></td></tr><tr><td>max_word_length</td><td>num</td><td>单个屏蔽词最大长度</td><td>目前为 <code>20</code></td></tr><tr><td>max_words_size</td><td>num</td><td>屏蔽词最大数量</td><td>目前为 <code>200</code></td></tr></tbody></table><p><code>data</code> 中的 <code>words</code> 数组：</p><table><thead><tr><th>项</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>0</td><td>obj</td><td>屏蔽词1</td><td></td></tr><tr><td>n</td><td>obj</td><td>屏蔽词(n+1)</td><td></td></tr><tr><td>……</td><td>obj</td><td>……</td><td>……</td></tr></tbody></table><p><code>words</code> 数组中的对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>content</td><td>str</td><td>屏蔽词内容</td><td></td></tr><tr><td>ctime</td><td>num</td><td>屏蔽词添加时间</td><td>秒级时间戳</td></tr></tbody></table><p><strong>示例：</strong></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/x/im/link_setting/get_block_words&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;build=0&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;mobi_app=web&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;words&quot;</span><span style="color:#D4D4D4;">: [</span></span>
<span class="line"><span style="color:#D4D4D4;">      {</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;content&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;屏蔽词&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;ctime&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1746422088</span></span>
<span class="line"><span style="color:#D4D4D4;">      }</span></span>
<span class="line"><span style="color:#D4D4D4;">    ],</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;max_word_length&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">20</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;max_words_size&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">200</span></span>
<span class="line"><span style="color:#D4D4D4;">  }</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="添加消息屏蔽词" tabindex="-1"><a class="header-anchor" href="#添加消息屏蔽词"><span>添加消息屏蔽词</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/x/im/link_setting/add_block_word" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/x/im/link_setting/add_block_word</a></p></blockquote><p><em>请求方式：POST</em></p><p>认证方式：Cookie（SESSDATA）</p><p><strong>正文参数（application/x-www-form-urlencoded）：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>content</td><td>str</td><td>屏蔽词内容</td><td>必要</td><td>最多 20 个字符</td></tr><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr><tr><td>csrf_token</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr><tr><td>csrf</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录<br>-400：请求错误<br>1900004：添加失败，屏蔽词限制最多20个字<br>1900005：添加失败，最多可以添加200个屏蔽词<br>1900006：添加失败，屏蔽词重复<br>1900007：添加失败，屏蔽词不支持空格</td></tr><tr><td>msg</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td>空对象</td></tr></tbody></table><p><strong>示例：</strong></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/x/im/link_setting/add_block_word&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;content=屏蔽词&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;build=0&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;mobi_app=web&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf_token=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {}</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="删除消息屏蔽词" tabindex="-1"><a class="header-anchor" href="#删除消息屏蔽词"><span>删除消息屏蔽词</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/x/im/link_setting/del_block_word" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/x/im/link_setting/del_block_word</a></p></blockquote><p><em>请求方式：POST</em></p><p>认证方式：Cookie（SESSDATA）</p><p><strong>正文参数（application/x-www-form-urlencoded）：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>content</td><td>str</td><td>屏蔽词内容</td><td>必要</td><td></td></tr><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr><tr><td>csrf_token</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr><tr><td>csrf</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录<br>-400：请求错误</td></tr><tr><td>msg</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td>空对象</td></tr></tbody></table><p><strong>示例：</strong></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/x/im/link_setting/del_block_word&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;content=屏蔽词&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;build=0&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;mobi_app=web&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf_token=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {}</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="获取自动回复文本-关键词回复规则" tabindex="-1"><a class="header-anchor" href="#获取自动回复文本-关键词回复规则"><span>获取自动回复文本/关键词回复规则</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/x/im/auto_reply/get_reply_text" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/x/im/auto_reply/get_reply_text</a></p></blockquote><p><em>请求方式：GET</em></p><p>认证方式：Cookie（SESSDATA）</p><p><strong>url参数：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>type[]</td><td>num</td><td>自动回复类型</td><td>必要</td><td>1：被关注回复<br>2：关键词回复<br>3：收到消息回复<br>5：大航海上船回复</td></tr><tr><td>uid</td><td>num</td><td>自己的mid</td><td>非必要</td><td></td></tr><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录<br>2：非法参数</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td></td></tr></tbody></table><p><code>data</code> 对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>texts</td><td>array</td><td>自动回复文本</td><td>若未设置此类型自动回复文本，则没有此项</td></tr></tbody></table><p><code>data</code> 中的 <code>texts</code> 数组：</p><table><thead><tr><th>项</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>0</td><td>obj</td><td>文本1</td><td></td></tr><tr><td>n</td><td>obj</td><td>文本(n+1)</td><td>当类型为 “关键词回复” 时可有多项</td></tr><tr><td>……</td><td>obj</td><td>……</td><td>……</td></tr></tbody></table><p><code>texts</code> 数组中的对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>id</td><td>num</td><td>自动回复规则id</td><td></td></tr><tr><td>uid</td><td>num</td><td>自己的mid</td><td></td></tr><tr><td>type</td><td>num</td><td>自动回复类型</td><td>同请求参数 <code>type[]</code></td></tr><tr><td>title</td><td>str</td><td>规则名称</td><td>当类型为 “关键词回复” 时有效，否则为空文本</td></tr><tr><td>key1</td><td>str</td><td>精确匹配关键词</td><td>当类型为 “关键词回复” 时有效，否则为空文本<br>以中文逗号分隔每一个关键词</td></tr><tr><td>key2</td><td>str</td><td>模糊匹配关键词</td><td>当类型为 “关键词回复” 时有效，否则为空文本<br>以中文逗号分隔每一个关键词</td></tr><tr><td>reply</td><td>str</td><td>回复内容</td><td></td></tr></tbody></table><p><strong>示例：</strong></p><p>获取关键词回复规则</p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/x/im/auto_reply/get_reply_text&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;type[]=2&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;uid=425503913&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;build=0&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;mobi_app=web&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;texts&quot;</span><span style="color:#D4D4D4;">: [</span></span>
<span class="line"><span style="color:#D4D4D4;">      {</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;id&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">201321</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;uid&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">425503913</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;type&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">2</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;title&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;谢谢&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;key1&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;谢谢，Thank you&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;key2&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;感谢&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;reply&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;我也感谢您对我的支持 (=・ω・=)&quot;</span></span>
<span class="line"><span style="color:#D4D4D4;">      },</span></span>
<span class="line"><span style="color:#D4D4D4;">      {</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;id&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">201320</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;uid&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">425503913</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;type&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">2</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;title&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;哭2&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;key1&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;哭&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;key2&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;reply&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;我是不会哭的 (=・ω・=)&quot;</span></span>
<span class="line"><span style="color:#D4D4D4;">      },</span></span>
<span class="line"><span style="color:#D4D4D4;">      {</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;id&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">201318</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;uid&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">425503913</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;type&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">2</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;title&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;哭&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;key1&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;key2&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;哭&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;reply&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;别哭了[tv_微笑]摸摸您 (^・ω・^)&quot;</span></span>
<span class="line"><span style="color:#D4D4D4;">      }</span></span>
<span class="line"><span style="color:#D4D4D4;">    ]</span></span>
<span class="line"><span style="color:#D4D4D4;">  }</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="修改自动回复文本-关键词回复规则" tabindex="-1"><a class="header-anchor" href="#修改自动回复文本-关键词回复规则"><span>修改自动回复文本/关键词回复规则</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/x/im/auto_reply/set_reply_text" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/x/im/auto_reply/set_reply_text</a></p></blockquote><p><em>请求方式：POST</em></p><p>认证方式：Cookie（SESSDATA）</p><p>仅调用本接口不会开启或关闭自动回复功能，请使用 “<a href="#%E4%BF%AE%E6%94%B9%E7%94%A8%E6%88%B7%E5%81%8F%E5%A5%BD%E8%AE%BE%E7%BD%AE">修改用户偏好设置</a>” 接口</p><p><strong>正文参数（application/x-www-form-urlencoded）：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>type</td><td>num</td><td>自动回复类型</td><td>必要</td><td>1：被关注回复<br>2：关键词回复<br>3：收到消息回复<br>5：大航海上船回复</td></tr><tr><td>reply</td><td>str</td><td>回复内容</td><td>必要</td><td>最多 500 个字符</td></tr><tr><td>id</td><td>str</td><td>规则id</td><td>非必要</td><td>当类型为 “关键词回复” 时有效<br>为 <code>0</code> 或为空时新增回复规则，否则修改 id 对应的回复规则</td></tr><tr><td>title</td><td>str</td><td>规则名称</td><td>关键词回复必要</td><td>当类型为 “关键词回复” 时有效，最多 30 个字符</td></tr><tr><td>key1</td><td>str</td><td>精确匹配关键词</td><td>关键词回复必要（可选）</td><td>当类型为 “关键词回复” 时有效，<code>key1</code> 与 <code>key2</code> 须至少填一个参数<br>以中文逗号分隔每一个关键词，最多 20 项</td></tr><tr><td>key2</td><td>str</td><td>模糊匹配关键词</td><td>关键词回复必要（可选）</td><td>当类型为 “关键词回复” 时有效，<code>key1</code> 与 <code>key2</code> 须至少填一个参数<br>以中文逗号分隔每一个关键词，最多 20 项</td></tr><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr><tr><td>csrf_token</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr><tr><td>csrf</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录<br>27011：请求参数错误<br>1500001：自动回复内容太长<br>1500002：规则数量已达上限，请删除后新建<br>1500003：您保存的内容含敏感信息，请修改后重试</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td>空对象</td></tr></tbody></table><p><strong>示例：</strong></p><p>修改关键词回复规则 <code>id=201321</code>，规则名称为 <code>谢谢</code>，精确匹配关键词为 <code>谢谢，Thank you，感谢</code>，回复内容为 <code>嗯嗯，不用谢[tv_微笑]</code></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/x/im/auto_reply/set_reply_text&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;type=2&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;reply=嗯嗯，不用谢[tv_微笑]&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;id=201321&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;title=谢谢&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;key1=谢谢，Thank you，感谢&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;key2=&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;build=0&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;mobi_app=web&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf_token=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {}</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="删除关键词回复规则" tabindex="-1"><a class="header-anchor" href="#删除关键词回复规则"><span>删除关键词回复规则</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/x/im/auto_reply/del_reply_text" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/x/im/auto_reply/del_reply_text</a></p></blockquote><p><em>请求方式：POST</em></p><p>认证方式：Cookie（SESSDATA）</p><p><strong>正文参数（application/x-www-form-urlencoded）：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>id</td><td>str</td><td>规则id</td><td>必要</td><td></td></tr><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr><tr><td>csrf_token</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr><tr><td>csrf</td><td>str</td><td>CSRF Token（位于cookie）</td><td>必要</td><td></td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录<br>-500：服务器错误<br>1003：不能删除别人的规则</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td>空对象</td></tr></tbody></table><p><strong>示例：</strong></p><p>删除关键词回复规则 <code>id=201321</code></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/x/im/auto_reply/del_reply_text&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;id=201321&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;build=0&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;mobi_app=web&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf_token=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  --data-urlencode</span><span style="color:#CE9178;"> &#39;csrf=xxx&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {}</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="获取系统设置" tabindex="-1"><a class="header-anchor" href="#获取系统设置"><span>获取系统设置</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/link_setting/v1/link_setting/get_sys_setting" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/link_setting/v1/link_setting/get_sys_setting</a></p></blockquote><p><em>请求方式：GET</em></p><p>认证方式：Cookie（SESSDATA）</p><p>此接口中的设置一般不能由用户随意更改</p><p><strong>url参数：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录</td></tr><tr><td>msg</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td></td></tr></tbody></table><p><code>data</code> 对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>is_create_group_available</td><td>num</td><td>是否可创建粉丝团</td><td>粉丝数达到 1000 后开启</td></tr><tr><td>is_auto_reply_available</td><td>num</td><td>是否可使用自动回复功能</td><td>粉丝数达到 1000 后开启</td></tr><tr><td>vc_hint_title</td><td>str</td><td>稿件自动推送小灰条内容</td><td><code>我为什么会收到此类消息</code></td></tr><tr><td>vc_hint_title_button</td><td>str</td><td>稿件自动推送小灰条旁的按钮内容</td><td><code>了解更多</code></td></tr><tr><td>vc_hint_detail</td><td>str</td><td>稿件自动推送详细信息小灰条内容</td><td><code>您【特别关注】的UP主更新视频或专栏后，会第一时间在私信推送给您。如有需要可点击右上角设置关闭推送。</code></td></tr><tr><td>vc_hint_detail_button</td><td>str</td><td>关闭稿件自动推送按钮内容</td><td><code>关闭推送</code></td></tr><tr><td>auto_reply_html</td><td>str</td><td>自动回复H5页面url</td><td><code>https://message.bilibili.com/h5/app/auto-reply</code></td></tr><tr><td>is_receive_unfollow_wl</td><td>num</td><td>是否显示限制接收未关注人消息功能</td><td></td></tr><tr><td>is_voyage</td><td>num</td><td>是否在自动回复页面显示 “大航海自动回复” 选项</td><td>仅部分用户开启</td></tr><tr><td>is_auto_reply_recommend_available</td><td>num</td><td>是否在自动回复中的 “被关注回复” 页面显示 “被关注后，向关注我的人推送我的往期作品” 复选框</td><td>仅部分用户开启</td></tr><tr><td>is_discuss_style_im_page</td><td>num</td><td>（？）</td><td><strong>作用尚不明确</strong></td></tr><tr><td>discuss_unread_style_im_page</td><td>num</td><td>（？）</td><td><strong>作用尚不明确</strong></td></tr><tr><td>old_up_assistant_door</td><td>obj</td><td>原 “UP主小助手” 入口相关信息</td><td></td></tr><tr><td>is_new_up_assistant_effective</td><td>num</td><td>新 “UP主小助手” 是否启用</td><td></td></tr><tr><td>is_archive_gray</td><td>bool</td><td>是否不显示 “私信存档” 按钮</td><td></td></tr><tr><td>session_cfg</td><td>obj</td><td>特定私信会话配置信息</td><td></td></tr><tr><td>migrate_session_api</td><td>bool</td><td>（？）</td><td><strong>作用尚不明确</strong></td></tr><tr><td>game_msg</td><td>obj</td><td>（？）</td><td><strong>作用尚不明确</strong>；仅当请求参数 <code>mobi_app</code> 不为 <code>web</code> 时有其中的项目</td></tr><tr><td>auto_reply_msg_desc</td><td>str</td><td>指示消息为自动回复消息的提示内容</td><td><code>此条消息为自动回复</code></td></tr><tr><td>huahuo_group_icon_new</td><td>str</td><td>浅色模式下的花火图标url</td><td></td></tr><tr><td>huahuo_group_icon_dark_new</td><td>str</td><td>深色模式下的花火图标url</td><td></td></tr><tr><td>im_disabled_input_hint</td><td>str</td><td>某UP主禁用私信功能时的提示内容</td><td><code>请到UP主空间发起咨询</code></td></tr></tbody></table><p><code>data</code> 中的 <code>old_up_assistant_door</code> 对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>show_old_up_door</td><td>num</td><td>是否显示原 “UP主小助手” 入口</td><td>目前恒为 <code>0</code></td></tr><tr><td>title</td><td>str</td><td>原 “UP主小助手” 入口标题</td><td>目前为空文本</td></tr><tr><td>sub_title</td><td>str</td><td>原 “UP主小助手” 入口子标题</td><td>目前为空文本</td></tr></tbody></table><p><code>data</code> 中的 <code>session_cfg</code> 对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>{用户mid}</td><td>obj</td><td>该会话的配置信息</td><td></td></tr></tbody></table><p><code>session_cfg</code> 中的 <code>{用户mid}</code> 对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>hidden_emote_btn</td><td>bool</td><td>是否隐藏表情按钮</td><td></td></tr><tr><td>hidden_pic_btn</td><td>bool</td><td>是否隐藏发送图片按钮</td><td></td></tr><tr><td>max_height</td><td>num</td><td>最大高度（？）</td><td><strong>作用尚不明确</strong></td></tr><tr><td>hint_text</td><td>str</td><td>私信输入框的提示内容</td><td><code>你想问什么问题呢?</code></td></tr><tr><td>hidden_top_hint</td><td>bool</td><td>（？）</td><td><strong>作用尚不明确</strong></td></tr><tr><td>is_gpt_account</td><td>bool</td><td>是否为AI会话</td><td></td></tr></tbody></table><p><code>data</code> 中的 <code>game_msg</code> 对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>show_install</td><td>bool</td><td>true</td><td><strong>作用尚不明确</strong>；仅当请求参数 <code>mobi_app</code> 不为 <code>web</code> 时有此项</td></tr></tbody></table><p><strong>示例：</strong></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/link_setting/v1/link_setting/get_sys_setting&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;is_create_group_available&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;is_auto_reply_available&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;vc_hint_title&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;我为什么会收到此类消息&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;vc_hint_title_button&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;了解更多&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;vc_hint_detail&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;您【特别关注】的UP主更新视频或专栏后，会第一时间在私信推送给您。如有需要可点击右上角设置关闭推送。&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;vc_hint_detail_button&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;关闭推送&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;auto_reply_html&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;https://message.bilibili.com/h5/app/auto-reply&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;is_receive_unfollow_wl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;is_voyage&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;is_auto_reply_recommend_available&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;is_discuss_style_im_page&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;discuss_unread_style_im_page&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;old_up_assistant_door&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;show_old_up_door&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;title&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;sub_title&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;&quot;</span></span>
<span class="line"><span style="color:#D4D4D4;">    },</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;is_new_up_assistant_effective&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;is_archive_gray&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;session_cfg&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;100000000000001&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hidden_emote_btn&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hidden_pic_btn&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;max_height&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">62</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hint_text&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;你想问什么问题呢?&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hidden_top_hint&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;is_gpt_account&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span></span>
<span class="line"><span style="color:#D4D4D4;">      },</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;100000000000002&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hidden_emote_btn&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hidden_pic_btn&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;max_height&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">62</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hint_text&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;你想问什么问题呢?&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hidden_top_hint&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;is_gpt_account&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span></span>
<span class="line"><span style="color:#D4D4D4;">      },</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;1400565964&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hidden_emote_btn&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hidden_pic_btn&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;max_height&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">62</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hint_text&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;你想问什么问题呢?&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;hidden_top_hint&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;is_gpt_account&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span></span>
<span class="line"><span style="color:#D4D4D4;">      }</span></span>
<span class="line"><span style="color:#D4D4D4;">    },</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;migrate_session_api&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">false</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;game_msg&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">      &quot;show_install&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#569CD6;">true</span></span>
<span class="line"><span style="color:#D4D4D4;">    },</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;auto_reply_msg_desc&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;此条消息为自动回复&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;huahuo_group_icon_new&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;http://i0.hdslb.com/bfs/kfptfe/floor/e2e3829e514ebccab1705636b0354ec89446a4b5.png&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;huahuo_group_icon_dark_new&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;http://i0.hdslb.com/bfs/kfptfe/floor/d09bc8c0716a15938ec427db5fa962733703f3ce.png&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;im_disabled_input_hint&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;请到UP主空间发起咨询&quot;</span></span>
<span class="line"><span style="color:#D4D4D4;">  }</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="获取创建粉丝团按钮可见性" tabindex="-1"><a class="header-anchor" href="#获取创建粉丝团按钮可见性"><span>获取创建粉丝团按钮可见性</span></a></h2><blockquote><p><a href="https://api.vc.bilibili.com/link_group/v1/member/show_create_group_icon" target="_blank" rel="noopener noreferrer">https://api.vc.bilibili.com/link_group/v1/member/show_create_group_icon</a></p></blockquote><p><em>请求方式：GET</em></p><p>认证方式：Cookie（SESSDATA）</p><p><strong>url参数：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>build</td><td>num</td><td>客户端内部版本号</td><td>非必要</td><td>默认为 <code>0</code></td></tr><tr><td>mobi_app</td><td>str</td><td>平台标识</td><td>非必要</td><td>可为 <code>web</code> 等</td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>-101：账号未登录</td></tr><tr><td>msg</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td></td></tr></tbody></table><p><code>data</code> 对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>show</td><td>num</td><td>是否显示创建粉丝团按钮</td><td>粉丝数达到 1000 后显示</td></tr></tbody></table><p><strong>示例：</strong></p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#CE9178;"> &#39;https://api.vc.bilibili.com/link_group/v1/member/show_create_group_icon&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#569CD6;">  -b</span><span style="color:#CE9178;"> &#39;SESSDATA=xxx&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;msg&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">  &quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;show&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span></span>
<span class="line"><span style="color:#D4D4D4;">  }</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details>`,155)]))}const r=t(e,[["render",d]]),c=JSON.parse('{"path":"/docs/message/settings.html","title":"消息设置","lang":"zh-CN","frontmatter":{},"git":{"updatedTime":1751627583000,"contributors":[{"name":"wuziqian211","username":"wuziqian211","email":"65224318+wuziqian211@users.noreply.github.com","commits":12,"url":"https://github.com/wuziqian211"}],"changelog":[{"hash":"3a1c463bf1b65a97cd60c952f88ac1bedc8abbc3","time":1751627583000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"fix(message): #1329"},{"hash":"f20ba59473fbb084280d32e4d956445268f24923","time":1746719917000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"feat &#x26; fix(message/settings): add details"},{"hash":"8d316f4cd030f1ac8b8b8d1d7dcee0d65273afd7","time":1746549796000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"feat(message): add details"},{"hash":"4553e3dd1b4590fe0f727cc009ae830ac935f3f5","time":1746445238000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"style &#x26; fix: improve docs"},{"hash":"6e817b97e81f37a6eede251b8a51ddfe1e0e1a06","time":1746423097000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"feat(message/settings): get &#x26; add &#x26; del black words"},{"hash":"fecc790b9ee2dae90dd13e12198fccb1f209a48b","time":1746422036000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"feat(message/settings): set &#x26; delete auto reply text"},{"hash":"5d35126f812a6b51ec1eb1541b5eea58cbf7799d","time":1746419480000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"feat(message/settings): get auto reply text"},{"hash":"e07ef4cbde73454e62d7524cfa790c08a013fd8b","time":1746417867000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"fix(message/settings): type error"},{"hash":"11559a32916a5c88650e9e20f6ececfb6b7698d2","time":1746392329000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"feat(message/settings): #1267"},{"hash":"5df6ad22be5773e2a2116508fd6fd7ed96623fcf","time":1746390298000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"feat(message/settings): add get user setting"},{"hash":"8150bb7be65797380f0fc1a59ac3b092192b4de2","time":1746388159000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"feat(message/settings): show create group icon"},{"hash":"0ba4aef40ad7c1885cacdaeec0d736b0a131287d","time":1746387617000,"email":"65224318+wuziqian211@users.noreply.github.com","author":"晨叶梦春","message":"feat(message/settings): add get sys setting"}]},"filePathRelative":"docs/message/settings.md"}');export{r as comp,c as data};
