简介
OneBot v11 是 QSICK 的默认聊天协议。内部事件本来就是 v11 形状:消息段、sender、post_type 都与标准一致,所以这条链路的转换是恒等的。现成的 OneBot v11 客户端与机器人框架通常不需要改协议代码。
除标准 API 外,QSICK 的动作注册表还包含大量扩展动作(群文件、群相册、QQ 空间、互动状态、原始包等)。下表按分类列出全部 245 个注册动作(另有 3 个别名),并给出每个动作的 params 字段。
其中部分动作是 QQ 宿主能力的适配,另一部分是扩展能力;标注 planned 的动作调用会返回未实现;最后一列来自 动作类-NapCat-SnowLuma.csv 的实测能力表(231 支持 / 1 部分 / 11 不支持,能力表未收录的注册表扩展标为「扩展」)。
包体格式
OneBot v11 的所有动作都走同一个 JSON 信封;HTTP 使用 POST {path}(另支持标准地址 POST /action),WebSocket 直接发送同一信封。
事件推送方向使用事件自身的 JSON,不包 params。
动作请求
POST / HTTP/1.1
Content-Type: application/json
{
"action": "send_private_msg",
"params": {"user_id": 123456789, "message": [{"type": "text", "data": {"text": "hello"}}]},
"echo": "req-1"
}字段说明:action 为下表动作名;params 为下表列出的参数对象;echo 可选,会原样回传。
动作响应
{"status": "ok", "retcode": 0, "data": {"message_id": 12345}, "echo": "req-1"}失败时 status 为 failed,retcode 为非 0,data 可以为 null;不得把失败当成功。
WebSocket / SSE
WebSocket 同一路径升级后双向收发动作与事件;SSE 的 GET {path} 只推事件,动作仍走 HTTP。事件、动作的 JSON 形状与上表相同。
API 一览(245 + 3 别名)
下表动作名与分组来自动作注册表 actions.json;说明、请求体、参数要求来自 动作类-NapCat-SnowLuma.csv,状态列为同表实测结果。分类是展示分组,不代表必须按该顺序调用。
数量口径:站点统计的“242 Payload 动作”来自 docs/payload-ops.md 的清单快照;动作注册表以 actions.json 为准,当前为 245 条(另有 3 个兼容别名)。两者不是同一个版本的清单,实际以注册表为准。
系统与账号(21)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
can_send_image | 是否可以发送图片 | {}无参数(传 {}) | 支持 |
can_send_record | 是否可以发送语音 | {}无参数(传 {}) | 支持 |
clean_cache | 清理缓存 | {}无参数(传 {}) | 支持 |
get_cookies | 获取 Cookies | {"domain":<string>}domain(必需·NapCat;可选·SnowLuma) | 支持 |
get_credentials | 获取登录凭证 | {"domain":<string>}domain(必需·NapCat;可选·SnowLuma) | 支持 |
get_csrf_token | 获取 CSRF Token | {}无参数(传 {}) | 支持 |
get_file | 获取文件 | {"file":<string>,"file_id":<string>}file(可选);file_id(可选) | 支持 |
get_flash_file_url | 获取闪传文件链接 | {"fileset_id":<string>,"file_name":<string>,"file_index":<int64>}fileset_id(必需);file_name(可选);file_index(可选) | 支持 |
get_group_file_url | 获取群文件URL | {"group_id":<int64:QQ号>,"file_id":<string>,"busid":<any>}group_id(必需);file_id(必需);busid(可选,仅SnowLuma) | 支持 |
get_image | 获取图片 | {"file":<string>,"file_id":<string>}file(可选);file_id(可选) | 支持 |
get_login_info | 获取登录号信息 | {}无参数(传 {}) | 支持 |
get_online_clients | 获取在线客户端 | {"no_cache":<bool>}no_cache(可选,仅SnowLuma) | 支持 |
get_private_file_url | 获取私聊文件URL | {"file_id":<string>,"user_id":<int64:QQ号>,"file_hash":<string>}file_id(必需);user_id(可选,仅SnowLuma);file_hash(可选,仅SnowLuma) | 支持 |
get_record | 获取语音 | {"file":<string>,"file_id":<string>,"out_format":<string>}file(可选);file_id(可选);out_format(必需·NapCat;可选·SnowLuma) | 支持 |
get_rkey | 获取扩展 RKey | {}无参数(传 {}) | 支持 |
get_rkey_server | 获取 RKey 服务器 | {}无参数(传 {}) | 支持 |
get_status | 获取运行状态 | {}无参数(传 {}) | 支持 |
get_version_info | 获取版本信息 | {}无参数(传 {}) | 支持 |
service_call | 调用某个 QQNT 服务上的方法(诊断用;用于探未公开的参数签名) | service*str method*str argslist | 扩展 |
service_methods | 列出 QQNT 服务对象暴露的方法(只读);service="*" 一次扫全部服务 | service*str containsstr | 扩展 |
set_restart | 重启服务 | {}无参数(传 {}) | 支持 |
消息(12)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
delete_msg | 撤回消息 | {"message_id":<int64|string>}message_id(必需) | 支持 |
get_forward_msg | 获取合并转发消息 | {"message_id":<int64|string>,"id":<string>}message_id(可选);id(可选) | 支持 |
get_friend_msg_history | 获取好友历史消息 | {"user_id":<int64:QQ号>,"message_seq":<string>,"count":<int64>,"reverse_order":<bool>,"disable_get_url":<bool>,"parse_mult_msg":<bool>,"quick_reply":<bool>,"reverseOrder":<bool>,"message_id":<int64>}user_id(必需);message_seq(可选,仅NapCat);count(可选);reverse_order(可选);disable_get_url(可选,仅NapCat);parse_mult_msg(可选,仅NapCat);quick_reply(可选,仅NapCat);reverseOrder(可选,仅NapCat);message_id(可选,仅SnowLuma) | 支持 |
get_group_msg_history | 获取群历史消息 | {"group_id":<int64:QQ号>,"message_seq":<string>,"count":<int64>,"reverse_order":<bool>,"disable_get_url":<bool>,"parse_mult_msg":<bool>,"quick_reply":<bool>,"reverseOrder":<bool>,"message_id":<int64>}group_id(必需);message_seq(可选,仅NapCat);count(可选);reverse_order(可选);disable_get_url(可选,仅NapCat);parse_mult_msg(可选,仅NapCat);quick_reply(可选,仅NapCat);reverseOrder(可选,仅NapCat);message_id(可选,仅SnowLuma) | 支持 |
get_msg | 获取消息 | {"message_id":<int64|string>}message_id(必需) | 支持 |
mark_msg_as_read | 标记消息已读(Go-CQHTTP) | {"user_id":<string|int64>,"group_id":<int64:QQ号>,"message_id":<int64>,"target_id":<int64:QQ号>}user_id(可选,仅NapCat);group_id(可选,仅NapCat);message_id(可选·NapCat;必需·SnowLuma);target_id(可选,仅SnowLuma) | 支持 |
mark_private_msg_as_read | 标记私聊已读 | {"user_id":<string|int64>,"group_id":<int64:QQ号>,"message_id":<int64>}user_id(可选);group_id(可选,仅NapCat);message_id(可选·NapCat;必需·SnowLuma) | 支持 |
send_custom_face | 发送账号收藏表情(emoji_id 或 MD5),保留表情显示样式 | {"emoji_id":<string>,"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"reply_to":<int64>}emoji_id(必需);group_id(可选);user_id(可选);reply_to(可选) | 支持 |
send_forward_msg | 发送合并转发消息 | {"user_id":<int64:QQ号>,"group_id":<int64:QQ号>,"messages":<消息段[]|消息段>,"message":<消息段>,"message_type":<string>,"source":<string>,"summary":<string>,"prompt":<string>,"news":<any>}user_id(可选);group_id(可选);messages(必需·NapCat;可选·SnowLuma);message(可选);message_type(可选,仅SnowLuma);source(可选,仅SnowLuma);summary(可选,仅SnowLuma);prompt(可选,仅SnowLuma);news(可选,仅SnowLuma) | 支持 |
send_group_msg | 发送群消息 | {"group_id":<int64:QQ号>,"message":<消息段>,"auto_escape":<bool>}group_id(必需);message(必需);auto_escape(可选) | 支持 |
send_msg | 发送消息 | {"message_type":<string>,"user_id":<int64:QQ号>,"group_id":<int64:QQ号>,"message":<消息段>,"auto_escape":<bool|string>,"source":<string>,"news":<array>,"summary":<string>,"prompt":<string>,"timeout":<int64>}message_type(可选);user_id(可选);group_id(可选);message(必需);auto_escape(可选);source(可选,仅NapCat);news(可选,仅NapCat);summary(可选,仅NapCat);prompt(可选,仅NapCat);timeout(可选,仅NapCat) | 支持 |
send_private_msg | 发送私聊消息 | {"user_id":<int64:QQ号>,"message":<消息段>,"auto_escape":<bool>,"group_id":<int64:QQ号>}user_id(必需);message(必需);auto_escape(可选);group_id(可选,仅SnowLuma) | 支持 |
好友(18)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
delete_friend | 删除好友 | {"friend_id":<string|int64>,"user_id":<string|int64>,"temp_block":<bool>,"temp_both_del":<bool>,"block":<bool>}friend_id(可选,仅NapCat);user_id(可选·NapCat;必需·SnowLuma);temp_block(可选,仅NapCat);temp_both_del(可选,仅NapCat);block(可选,仅SnowLuma) | 支持 |
fetch_emoji_like | 获取表情点赞详情 | {"message_id":<int64|string>,"emojiId":<int64|string>,"emojiType":<int64|string>,"count":<int64|string>,"cookie":<string>}message_id(必需);emojiId(必需);emojiType(必需,仅NapCat);count(可选);cookie(可选) | 不支持 |
forward_friend_single_msg | 转发单条消息给好友 | {"message_id":<int64|string>,"group_id":<int64:QQ号>,"user_id":<int64:QQ号>}message_id(必需);group_id(可选,仅NapCat);user_id(可选·NapCat;必需·SnowLuma) | 支持 |
get_doubt_friends_add_request | 获取可疑好友申请 | {"count":<int64>}count(可选) | 支持 |
get_emoji_likes | 获取消息表情点赞列表 | {"group_id":<int64:QQ号>,"message_id":<int64>,"emoji_id":<string>,"emoji_type":<string>,"count":<int64>}group_id(可选,仅NapCat);message_id(必需);emoji_id(必需);emoji_type(可选,仅NapCat);count(可选,仅NapCat) | 不支持 |
get_friend_list | 获取好友列表 | {"no_cache":<bool|string>,"with_profile":<bool>}no_cache(可选,仅NapCat);with_profile(可选,仅SnowLuma) | 支持 |
get_friend_relation_list | get_friend_relation_list | no_cachebool | 扩展 |
get_friend_status_list | get_friend_status_list | no_cachebool | 扩展 |
get_friends_with_category | 获取带分组的好友列表 | {"with_profile":<bool>}with_profile(可选,仅SnowLuma) | 支持 |
get_profile_like | 获取资料点赞 | {"user_id":<int64:QQ号>,"start":<int64|string>,"count":<int64|string>}user_id(可选);start(可选);count(可选) | 支持 |
get_recent_contact | 获取最近会话 | {"count":<int64|string>}count(可选) | 支持 |
get_stranger_info | 获取陌生人信息 | {"user_id":<int64:QQ号>,"no_cache":<bool|string>}user_id(必需);no_cache(可选,仅NapCat) | 支持 |
get_unidirectional_friend_list | 获取单向好友列表 | {}无参数(传 {}) | 支持 |
send_like | 点赞 | {"user_id":<int64:QQ号>,"times":<int64|string>}user_id(必需);times(可选) | 支持 |
set_doubt_friends_add_request | 处理可疑好友申请 | {"flag":<string>,"approve":<bool>}flag(必需);approve(可选) | 支持 |
set_friend_remark | 设置好友备注 | {"user_id":<int64:QQ号>,"remark":<string>}user_id(必需);remark(必需) | 支持 |
set_qq_profile | 设置QQ资料 | {"nickname":<string>,"personal_note":<string>,"sex":<int64|string>}nickname(必需·NapCat;可选·SnowLuma);personal_note(可选);sex(可选) | 支持 |
set_self_longnick | 设置个性签名 | {"longNick":<string>,"long_nick":<string>}longNick(必需·NapCat;可选·SnowLuma);long_nick(可选,仅SnowLuma) | 支持 |
群聊(31)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
_del_group_notice | 删除群公告 | {"group_id":<int64:QQ号>,"notice_id":<string>,"fid":<string>}group_id(必需);notice_id(必需·NapCat;可选·SnowLuma);fid(可选,仅SnowLuma) | 支持 |
_get_group_notice | 获取群公告 | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
_send_group_notice | 发送群公告 | {"group_id":<int64:QQ号>,"content":<string>,"image":<string>,"pinned":<int64|string>,"type":<int64|string>,"confirm_required":<int64|string>,"is_show_edit_card":<int64|string>,"tip_window_type":<int64|string>,"send_to_new_members":<bool>}group_id(必需);content(必需);image(可选);pinned(可选);type(可选);confirm_required(可选);is_show_edit_card(可选);tip_window_type(可选);send_to_new_members(可选,仅SnowLuma) | 支持 |
cancel_group_todo | 取消群待办 | {"group_id":<string|int64>,"message_id":<int64>,"message_seq":<string>}group_id(必需);message_id(可选·NapCat;必需·SnowLuma);message_seq(可选,仅NapCat) | 支持 |
complete_group_todo | 完成群待办 | {"group_id":<string|int64>,"message_id":<int64>,"message_seq":<string>}group_id(必需);message_id(可选·NapCat;必需·SnowLuma);message_seq(可选,仅NapCat) | 支持 |
delete_group_folder | 删除群文件目录 | {"group_id":<int64:QQ号>,"folder_id":<string>,"folder":<string>}group_id(必需);folder_id(可选·NapCat;必需·SnowLuma);folder(可选,仅NapCat) | 支持 |
get_group_admin_list | get_group_admin_list | group_id*int no_cachebool include_ownerbool | 扩展 |
get_group_at_all_remain | 获取群艾特全体剩余次数 | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
get_group_detail_info | 获取群详细信息 | {"group_id":<int64:QQ号>,"no_cache":<bool>}group_id(必需);no_cache(可选,仅SnowLuma) | 支持 |
get_group_honor_info | 获取群荣誉信息 | {"group_id":<int64:QQ号>,"type":<string>}group_id(必需);type(可选) | 支持 |
get_group_ignore_add_request | 获取群被忽略的加群请求 | {}无参数(传 {}) | 支持 |
get_group_ignored_notifies | 获取群忽略通知 | {}无参数(传 {}) | 支持 |
get_group_info | 获取群信息 | {"group_id":<int64:QQ号>,"no_cache":<bool>}group_id(必需);no_cache(可选,仅SnowLuma) | 支持 |
get_group_info_ex | 获取群详细信息(扩展) | {"group_id":<int64:QQ号>,"no_cache":<bool>}group_id(必需);no_cache(可选,仅SnowLuma) | 支持 |
get_group_list | 获取群列表 | {"no_cache":<bool|string>}no_cache(可选) | 支持 |
get_group_member_count | get_group_member_count | group_id*int no_cachebool | 扩展 |
get_group_member_info | 获取群成员信息 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"no_cache":<bool|string>}group_id(必需);user_id(必需);no_cache(可选) | 支持 |
get_group_member_list | 获取群成员列表 | {"group_id":<int64:QQ号>,"no_cache":<bool|string>}group_id(必需);no_cache(可选) | 支持 |
get_group_notices | 获取待处理的群通知(入群申请/邀请/管理员变动),带审批所需的 flag | countint timeout_msint | 扩展 |
get_group_root_files | 获取群根目录文件列表 | {"group_id":<int64:QQ号>,"file_count":<int64|string>}group_id(必需);file_count(可选,仅NapCat) | 支持 |
get_group_share_ark | get_group_share_ark | group_id*int | 扩展 |
get_group_share_link | 获取群分享链接 | {"group_id":<string|int64>,"need_short_url":<bool|string>,"src_id":<int64|string>,"additional_param":<string>}group_id(必需);need_short_url(可选);src_id(可选);additional_param(可选) | 支持 |
get_group_shut_list | 获取群禁言列表 | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
get_group_signed_list | 获取群组今日打卡列表 | {"group_id":<string|int64>}group_id(必需) | 支持 |
get_group_system_msg | 获取群系统消息 | {"count":<int64|string>,"group_id":<int64:QQ号>,"only_pending":<bool>}count(可选);group_id(可选,仅SnowLuma);only_pending(可选,仅SnowLuma) | 支持 |
send_group_ai_record | 发送群 AI 语音 | {"character":<string>,"group_id":<int64:QQ号>,"text":<string>,"chat_type":<int64>}character(必需);group_id(必需);text(必需);chat_type(可选,仅SnowLuma) | 支持 |
set_group_new_member_history_visibility | 设置新成员历史消息可见性 | {"group_id":<int64:QQ号>,"visible":<bool>}group_id(必需);visible(必需) | 支持 |
set_group_portrait | 设置群头像 | {"file":<string>,"group_id":<int64:QQ号>}file(必需);group_id(必需) | 支持 |
set_group_remark | 设置群备注 | {"group_id":<int64:QQ号>,"remark":<string>}group_id(必需);remark(必需) | 支持 |
set_group_sign | 群签到 | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
set_group_todo | 设置群待办 | {"group_id":<string|int64>,"message_id":<int64>,"message_seq":<string>}group_id(必需);message_id(可选·NapCat;必需·SnowLuma);message_seq(可选,仅NapCat) | 支持 |
群管理(23)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
add_group_tag | 向某个群分类添加资料标签 | {"group_class":<int64>,"name":<string>}group_class(必需);name(必需) | 支持 |
delete_group_tag | 从某个群分类移除资料标签 | {"group_class":<int64>,"name":<string>}group_class(必需);name(必需) | 支持 |
get_group_admin_permissions | 读取指定管理员的撤回、移除成员、每日移除上限及接收验证消息状态 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>}group_id(必需);user_id(必需) | 支持 |
get_group_admin_settings | 获取群管理设置的当前值 | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
get_group_tags | 读取某个群分类下的资料标签 | {"group_class":<int64>}group_class(必需) | 支持 |
set_group_add_option | 设置群加群选项 | {"group_id":<int64:QQ号>,"add_type":<int64>,"group_question":<string>,"group_answer":<string>}group_id(必需);add_type(必需·NapCat;可选·SnowLuma);group_question(可选);group_answer(可选) | 支持 |
set_group_admin | 设置群管理员 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"enable":<bool|string>}group_id(必需);user_id(必需);enable(可选) | 支持 |
set_group_admin_permissions | 设置指定管理员的撤回和移除成员权限 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"recall_member_message":<bool>,"kick_member":<bool>,"kick_member_per_day":<int64>}group_id(必需);user_id(必需);recall_member_message(可选);kick_member(可选);kick_member_per_day(可选) | 支持 |
set_group_admin_receive_verify | 设置指定管理员是否接收加群验证消息 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"enable":<bool>}group_id(必需);user_id(必需);enable(必需) | 支持 |
set_group_anonymous | 匿名开关(未实现,返回 ok) | {}无参数(传 {}) | 支持 |
set_group_anonymous_ban | 匿名禁言(未实现,返回 ok) | {}无参数(传 {}) | 支持 |
set_group_ban | 群组禁言 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"duration":<int64|string>}group_id(必需);user_id(必需);duration(可选) | 支持 |
set_group_card | 设置群名片 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"card":<string>}group_id(必需);user_id(必需);card(可选) | 支持 |
set_group_kick | 群组踢人 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"reject_add_request":<bool|string>}group_id(必需);user_id(必需);reject_add_request(可选) | 支持 |
set_group_kick_members | 批量踢出群成员 | {"group_id":<int64:QQ号>,"user_id":<array>,"reject_add_request":<bool|string>}group_id(必需);user_id(必需);reject_add_request(可选) | 支持 |
set_group_leave | 退出群组 | {"group_id":<int64:QQ号>,"is_dismiss":<bool|string>}group_id(必需);is_dismiss(可选,仅NapCat) | 支持 |
set_group_member_invite_policy | 设置群成员邀请策略 | {"group_id":<int64:QQ号>,"policy":<object|string>}group_id(必需);policy(必需) | 支持 |
set_group_member_permissions | 设置群成员功能权限 | {"group_id":<int64:QQ号>,"allow_member_upload_album":<bool>,"allow_member_temporary_session":<bool>,"allow_member_create_group":<bool>}group_id(必需);allow_member_upload_album(可选);allow_member_temporary_session(可选);allow_member_create_group(可选) | 支持 |
set_group_name | 设置群名称 | {"group_id":<int64:QQ号>,"group_name":<string>}group_id(必需);group_name(必需·NapCat;可选·SnowLuma) | 支持 |
set_group_robot_add_option | 设置群机器人加群选项 | {"group_id":<int64:QQ号>,"robot_member_switch":<int64>,"robot_member_examine":<int64>}group_id(必需);robot_member_switch(可选);robot_member_examine(可选) | 支持 |
set_group_search | 设置群搜索选项 | {"group_id":<int64:QQ号>,"no_code_finger_open":<int64>,"no_finger_open":<int64>}group_id(必需);no_code_finger_open(可选);no_finger_open(可选) | 支持 |
set_group_special_title | 设置专属头衔 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"special_title":<string>}group_id(必需);user_id(必需);special_title(可选) | 支持 |
set_group_whole_ban | 全员禁言 | {"group_id":<int64:QQ号>,"enable":<bool|string>}group_id(必需);enable(可选) | 支持 |
群文件(19)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
cancel_online_file | 取消在线文件 | {"user_id":<int64:QQ号>,"msg_id":<string>}user_id(必需);msg_id(必需) | 支持 |
create_group_file_folder | 创建群文件目录 | {"group_id":<int64:QQ号>,"folder_name":<string>,"name":<string>,"parent_id":<string>}group_id(必需);folder_name(可选,仅NapCat);name(可选·NapCat;必需·SnowLuma);parent_id(可选,仅SnowLuma) | 支持 |
delete_group_file | 删除群文件 | {"group_id":<int64:QQ号>,"file_id":<string>,"bus_id":<int64>,"busid":<int64>}group_id(必需);file_id(必需);bus_id(可选,仅NapCat);busid(可选,仅NapCat) | 支持 |
delete_group_file_folder | 删除群文件夹 | {"group_id":<int64:QQ号>,"folder_id":<string>}group_id(必需);folder_id(必需) | 支持 |
download_file | 下载文件 | {"url":<string>,"base64":<string>,"name":<string>,"headers":<string|array>}url(可选);base64(可选);name(可选);headers(可选) | 支持 |
download_fileset | 下载文件集 | {"fileset_id":<string>,"file_name":<string>,"file_index":<int64>}fileset_id(必需);file_name(可选,仅SnowLuma);file_index(可选,仅SnowLuma) | 支持 |
get_group_file_system_info | 获取群文件系统信息 | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
get_group_files_by_folder | 获取群文件夹文件列表 | {"group_id":<int64:QQ号>,"folder_id":<string>,"folder":<string>,"file_count":<int64|string>}group_id(必需);folder_id(可选);folder(可选);file_count(可选,仅NapCat) | 支持 |
get_online_file_msg | 获取在线文件消息 | {"user_id":<int64:QQ号>}user_id(必需) | 支持 |
move_group_file | 移动群文件 | {"group_id":<int64:QQ号>,"file_id":<string>,"current_parent_directory":<string>,"target_parent_directory":<string>,"parent_directory":<string>,"target_directory":<string>}group_id(必需);file_id(必需);current_parent_directory(必需,仅NapCat);target_parent_directory(必需,仅NapCat);parent_directory(必需,仅SnowLuma);target_directory(必需,仅SnowLuma) | 支持 |
receive_online_file | 接收在线文件 | {"user_id":<int64:QQ号>,"msg_id":<string>,"element_id":<string>}user_id(必需);msg_id(必需);element_id(必需) | 支持 |
refuse_online_file | 拒绝在线文件 | {"user_id":<int64:QQ号>,"msg_id":<string>,"element_id":<string>}user_id(必需);msg_id(必需);element_id(必需) | 支持 |
rename_group_file | 重命名群文件 | {"group_id":<int64:QQ号>,"file_id":<string>,"current_parent_directory":<string>,"new_name":<string>}group_id(必需);file_id(必需);current_parent_directory(必需·NapCat;可选·SnowLuma);new_name(必需) | 支持 |
rename_group_file_folder | 重命名群文件夹 | {"group_id":<int64:QQ号>,"folder_id":<string>,"new_folder_name":<string>,"name":<string>}group_id(必需);folder_id(必需);new_folder_name(可选);name(可选) | 支持 |
send_online_file | 发送在线文件 | {"user_id":<int64:QQ号>,"file_path":<string>,"file_name":<string>}user_id(必需);file_path(必需);file_name(可选) | 支持 |
send_online_folder | 发送在线文件夹 | {"user_id":<int64:QQ号>,"folder_path":<string>,"folder_name":<string>}user_id(必需);folder_path(必需);folder_name(可选) | 支持 |
trans_group_file | 传输群文件 | {"group_id":<int64:QQ号>,"file_id":<string>}group_id(必需);file_id(必需) | 支持 |
upload_group_file | 上传群文件 | {"group_id":<int64:QQ号>,"file":<string>,"name":<string>,"folder":<string>,"folder_id":<string>,"upload_file":<bool>}group_id(必需);file(必需);name(必需·NapCat;可选·SnowLuma);folder(可选);folder_id(可选);upload_file(可选) | 支持 |
upload_private_file | 上传私聊文件 | {"user_id":<int64:QQ号>,"file":<string>,"name":<string>,"upload_file":<bool>}user_id(必需);file(必需);name(必需·NapCat;可选·SnowLuma);upload_file(可选) | 支持 |
群相册(9)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
cancel_group_album_media_like | 取消点赞群相册媒体 | {"group_id":<int64:QQ号>,"album_id":<string>,"batch_id":<string>,"lloc":<string>}group_id(必需);album_id(必需);batch_id(必需);lloc(可选) | 支持 |
del_group_album_media | 删除群相册媒体 | {"group_id":<int64:QQ号>,"album_id":<string>,"lloc":<string>}group_id(必需);album_id(必需);lloc(必需) | 支持 |
do_group_album_comment | 发表群相册评论 | {"group_id":<int64:QQ号>,"album_id":<string>,"lloc":<string>,"batch_id":<string>,"content":<string>}group_id(必需);album_id(必需);lloc(可选·NapCat;必需·SnowLuma);batch_id(可选,仅NapCat);content(必需) | 支持 |
get_group_album_list | 获取群相册列表(SnowLuma 自有驼峰形状) | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
get_group_album_media_list | 获取群相册媒体列表 | {"group_id":<int64:QQ号>,"album_id":<string>,"attach_info":<string>}group_id(必需);album_id(必需);attach_info(可选) | 支持 |
get_qun_album_list | 获取群相册列表 | {"group_id":<int64:QQ号>,"attach_info":<string>}group_id(必需);attach_info(可选) | 支持 |
set_group_album_media_like | 点赞群相册媒体 | {"group_id":<int64:QQ号>,"album_id":<string>,"batch_id":<string>,"lloc":<string>}group_id(必需);album_id(必需);batch_id(必需);lloc(可选) | 支持 |
upload_image_to_qun_album | 上传图片到群相册 | {"group_id":<int64:QQ号>,"album_id":<string>,"album_name":<string>,"file":<string>}group_id(必需);album_id(必需);album_name(必需);file(必需) | 支持 |
upload_video_to_qun_album | 上传视频到群相册 | {"group_id":<int64:QQ号>,"album_id":<string>,"album_name":<string>,"file":<string>}group_id(必需);album_id(必需);album_name(必需);file(必需) | 支持 |
互动与状态(7)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
friend_poke | 好友拍一拍 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"target_id":<int64:QQ号>}group_id(可选,仅NapCat);user_id(必需);target_id(可选) | 支持 |
group_poke | 群拍一拍 | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"target_id":<int64:QQ号>}group_id(可选·NapCat;必需·SnowLuma);user_id(必需);target_id(可选,仅NapCat) | 支持 |
send_poke | 拍一拍(群聊/私聊自动路由) | {"group_id":<int64:QQ号>,"user_id":<int64:QQ号>,"target_id":<int64:QQ号>}group_id(可选);user_id(必需);target_id(可选,仅NapCat) | 支持 |
set_diy_online_status | 设置自定义在线状态 | {"face_id":<int64|string>,"face_type":<int64|string>,"wording":<string>}face_id(必需);face_type(可选);wording(可选) | 支持 |
set_input_status | 设置输入状态 | {"user_id":<int64:QQ号>,"event_type":<int64>}user_id(必需);event_type(必需·NapCat;可选·SnowLuma) | 支持 |
set_msg_emoji_like | 设置消息表情点赞 | {"message_id":<int64|string>,"emoji_id":<int64|string>,"set":<bool|string>}message_id(必需);emoji_id(必需);set(可选) | 支持 |
set_online_status | 设置在线状态 | {"status":<int64|string>,"ext_status":<int64|string>,"battery_status":<int64|string>}status(必需);ext_status(必需·NapCat;可选·SnowLuma);battery_status(必需·NapCat;可选·SnowLuma) | 支持 |
请求处理(2)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
set_friend_add_request | 处理加好友请求 | {"flag":<string>,"approve":<string|bool>,"remark":<string>}flag(必需);approve(可选);remark(可选,仅NapCat) | 支持 |
set_group_add_request | 处理加群请求 | {"flag":<string>,"approve":<bool|string>,"reason":<string>,"count":<int64>,"sub_type":<string>,"type":<string>}flag(必需);approve(可选);reason(可选);count(可选,仅NapCat);sub_type(可选,仅SnowLuma);type(可选,仅SnowLuma) | 支持 |
表情(6)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
fetch_custom_face | 获取自定义表情 | {"count":<int64|string>,"return_type":<string>}count(可选);return_type(可选,仅SnowLuma) | 支持 |
fetch_custom_face_detail | 获取自定义表情详情 | {"count":<int64|string>}count(可选) | 支持 |
fetch_face_entity | 按编号查询 QQ 系统表情 | {"face_id":<int64>,"refresh":<bool>}face_id(必需);refresh(可选) | 支持 |
fetch_super_face_id | 判断 QQ 系统表情是否使用超级表情格式 | {"face_id":<int64>,"refresh":<bool>}face_id(必需);refresh(可选) | 支持 |
fetch_sys_faces | 获取 QQ 系统表情目录 | {"refresh":<bool>}refresh(可选) | 支持 |
search_sys_faces | 搜索 QQ 系统表情 | {"query":<string>}query(必需) | 支持 |
卡片与小程序(2)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
get_mini_app_ark | 获取小程序 Ark | {"type":<string>,"title":<string>,"desc":<string>,"picUrl":<string>,"jumpUrl":<string>,"webUrl":<string>,"appId":<string>,"scene":<string>,"pic_url":<string>,"jump_url":<string>}type(可选);title(必需·NapCat;可选·SnowLuma);desc(必需·NapCat;可选·SnowLuma);picUrl(必需·NapCat;可选·SnowLuma);jumpUrl(必需·NapCat;可选·SnowLuma);webUrl(可选,仅NapCat);appId(可选,仅NapCat);scene(可选,仅NapCat);pic_url(可选,仅SnowLuma);jump_url(可选,仅SnowLuma) | 支持 |
get_share_link | 获取文件分享链接 | {"fileset_id":<string>}fileset_id(必需) | 支持 |
闪照(3)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
create_flash_task | 创建闪传任务 | {"files":<array|string>,"name":<string>,"thumb_path":<string>,"validitySeconds":<int64>}files(必需·NapCat;可选·SnowLuma);name(可选);thumb_path(可选);validitySeconds(可选,仅NapCat) | 支持 |
get_flash_file_list | 获取闪传文件列表 | {"fileset_id":<string>}fileset_id(必需) | 支持 |
send_flash_msg | 发送闪传消息(私聊或群聊,引用 fileset_id 让对端下载) | {"fileset_id":<string>,"user_id":<int64:QQ号>,"group_id":<int64:QQ号>}fileset_id(必需);user_id(可选);group_id(可选) | 支持 |
流式文件(5)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
clean_stream_temp_file | 清理流式传输临时文件 | {}无参数(传 {}) | 支持 |
download_file_image_stream | 下载图片文件流 | {"file":<string>,"file_id":<string>,"chunk_size":<int64>}file(可选);file_id(可选);chunk_size(可选) | 支持 |
download_file_record_stream | 下载语音文件流 | {"file":<string>,"file_id":<string>,"chunk_size":<int64>,"out_format":<string>}file(可选);file_id(可选);chunk_size(可选);out_format(可选,仅NapCat) | 支持 |
download_file_stream | 下载文件流 | {"file":<string>,"file_id":<string>,"chunk_size":<int64>}file(可选);file_id(可选);chunk_size(可选) | 支持 |
upload_file_stream | 上传文件流 | {"stream_id":<string>,"chunk_data":<string>,"chunk_index":<int64>,"total_chunks":<int64>,"file_size":<int64>,"expected_sha256":<string>,"is_complete":<bool>,"filename":<string>,"reset":<bool>,"verify_only":<bool>,"file_retention":<int64>}stream_id(必需);chunk_data(可选);chunk_index(可选);total_chunks(可选);file_size(可选);expected_sha256(可选);is_complete(可选);filename(可选);reset(可选);verify_only(可选);file_retention(可选) | 支持 |
QQ 空间(31)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
comment_qzone | 评论QQ空间说说 | {"feed_ref":<object>,"tid":<string|int64>,"target_uin":<int64:QQ号>,"content":<string|int64|bool>,"comment":<object>,"reply_user":<object>,"comment_id":<string|int64>,"comment_uin":<int64:QQ号>,"reply_uin":<int64:QQ号>,"reply_name":<string|int64|bool>,"images":<array>}feed_ref(可选,仅NapCat);tid(可选·NapCat;必需·SnowLuma);target_uin(可选);content(必需);comment(可选,仅NapCat);reply_user(可选,仅NapCat);comment_id(可选);comment_uin(可选);reply_uin(可选);reply_name(可选);images(可选) | 支持 |
comment_qzone_public_feed | 评论空友爱看动态 | {"feed":<object>,"content":<object|string|array>}feed(必需);content(必需) | 支持 |
delete_qzone_msg | 删除QQ空间说说 | {"tid":<string|int64>}tid(必需) | 支持 |
delete_qzone_public_comment | 删除空友爱看评论 | {"feed":<object>,"comment":<object>}feed(必需);comment(必需) | 支持 |
delete_qzone_public_reply | 删除空友爱看回复 | {"feed":<object>,"comment":<object>,"reply":<object>}feed(必需);comment(必需);reply(必需) | 支持 |
forward_qzone_public_feed | 转发空友爱看动态 | {"feed":<object>,"reason":<string>}feed(必需);reason(可选) | 支持 |
get_qzone_comment_list | 获取QQ空间说说评论 | {"feed_ref":<object>,"cursor":<string>}feed_ref(必需);cursor(可选) | 支持 |
get_qzone_comment_replies | 获取QQ空间评论楼中楼回复 | {"feed_ref":<object>,"comment":<object>,"cursor":<string>}feed_ref(必需);comment(必需);cursor(可选) | 支持 |
get_qzone_feed_detail | 按说说 tid 读取完整空间动态,可用于生成分享卡片 | {"tid":<string>}tid(必需) | 支持 |
get_qzone_feeds | 获取QQ空间好友动态 | {"format":<string>,"page_num":<int64>,"count":<int64>,"cursor":<string>}format(可选,仅NapCat);page_num(可选);count(可选);cursor(可选) | 支持 |
get_qzone_home_feeds | 读取自己或有权访问的空间主页动态,保留完整分享信息 | {"target_uin":<int64:QQ号>,"cursor":<string>}target_uin(可选);cursor(可选) | 支持 |
get_qzone_msg_detail | 获取QQ空间说说详情 | {"feed_ref":<object>,"tid":<string|int64>,"target_uin":<int64:QQ号>,"pos":<int64>,"num":<int64>}feed_ref(可选,仅NapCat);tid(可选·NapCat;必需·SnowLuma);target_uin(可选);pos(可选);num(可选) | 支持 |
get_qzone_msg_list | 获取QQ空间说说列表 | {"format":<string>,"target_uin":<int64:QQ号>,"pos":<int64>,"num":<int64>,"cursor":<string>}format(可选,仅NapCat);target_uin(可选);pos(可选);num(可选);cursor(可选,仅NapCat) | 支持 |
get_qzone_profile | 获取QQ空间资料 | {"target_uin":<string|int64>}target_uin(可选) | 支持 |
get_qzone_public_capabilities | 获取空友爱看接口能力 | {}无参数(传 {}) | 支持 |
get_qzone_public_comments | 获取空友爱看评论 | {"feed":<object>,"cursor":<string>}feed(必需);cursor(必需) | 支持 |
get_qzone_public_feed_detail | 获取空友爱看动态详情 | {"feed":<object>}feed(必需) | 支持 |
get_qzone_public_feeds | 获取空友爱看动态 | {"cursor":<string>}cursor(可选) | 支持 |
get_qzone_public_replies | 获取空友爱看评论回复 | {"feed":<object>,"comment":<object>,"cursor":<string>,"page_size":<int64|string>}feed(必需);comment(必需);cursor(可选);page_size(可选) | 支持 |
get_qzone_share_ark planned | 生成空间动态分享卡片,返回原文及分享提示 | {"feed":<object>}feed(必需) | 支持 |
like_qzone | 点赞QQ空间说说 | {"feed_ref":<object>,"tid":<string|int64>,"target_uin":<int64:QQ号>,"abstime":<int64>}feed_ref(可选,仅NapCat);tid(可选·NapCat;必需·SnowLuma);target_uin(可选);abstime(可选) | 支持 |
reply_qzone_public_feed | 回复空友爱看评论 | {"feed":<object>,"comment":<object>,"content":<object|string|array>,"reply":<object>}feed(必需);comment(必需);content(必需);reply(可选) | 支持 |
send_qzone_msg | 发表QQ空间说说 | {"content":<string|int64|bool>,"images":<array>,"ugc_right":<int64|string>,"target_uins":<array>}content(必需);images(可选);ugc_right(可选);target_uins(可选) | 支持 |
set_qzone_ban | 设置QQ空间访问限制 | {"user_id":<string|int64>,"enable":<bool|int64|string>}user_id(必需);enable(可选) | 支持 |
set_qzone_msg_right | 修改QQ空间说说权限 | {"tid":<string|int64>,"ugc_right":<int64|string>,"target_uins":<array>}tid(必需);ugc_right(必需);target_uins(可选) | 部分 |
set_qzone_profile | 修改QQ空间资料 | {"name":<string|int64|bool>,"description":<string|int64|bool>}name(可选);description(可选) | 支持 |
set_qzone_public_comment_like | 设置空友爱看评论或回复赞 | {"feed":<object>,"comment":<object>,"reply":<object>,"enable":<bool|int64|string>}feed(必需);comment(必需);reply(可选);enable(可选) | 支持 |
set_qzone_public_follow | 蹲或取消蹲空友爱看作者 | {"feed":<object>,"enable":<bool|int64|string>}feed(必需);enable(可选) | 支持 |
set_qzone_public_like | 设置空友爱看普通赞 | {"feed":<object>,"enable":<bool|int64|string>}feed(必需);enable(可选) | 支持 |
set_qzone_public_upvote | 推或取消推空友爱看动态 | {"feed":<object>,"enable":<bool|int64|string>}feed(必需);enable(可选) | 支持 |
unlike_qzone | 取消QQ空间说说点赞 | {"feed_ref":<object>,"tid":<string|int64>,"target_uin":<int64:QQ号>,"abstime":<int64>}feed_ref(可选,仅NapCat);tid(可选·NapCat;必需·SnowLuma);target_uin(可选);abstime(可选) | 支持 |
频道(2)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
get_guild_list | 获取频道列表 | {}无参数(传 {}) | 支持 |
get_guild_service_profile | 获取频道个人信息 | {}无参数(传 {}) | 支持 |
原始包(3)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
nc_get_packet_status | 获取Packet状态 | {}无参数(传 {}) | 支持 |
oidb_call | 调用任意 OIDB(返回 error_code 与原始 body_hex) | command*int sub_commandint body_hexstr timeout_msint stylestr reservedint | 扩展 |
send_packet | 发送原始数据包 | {"cmd":<string>,"data":<string>,"rsp":<string|bool>}cmd(必需);data(必需·NapCat;可选·SnowLuma);rsp(可选) | 支持 |
扩展动作(51)
| 动作 | 说明 | 参数(params 字段) | QSICK 状态 |
|---|---|---|---|
.get_word_slices | 分词(未实现) | {}无参数(传 {}) | 支持 |
ArkSharePeer | 分享用户/群 Ark 卡片(已标记 deprecated) | {"user_id":<int64:QQ号>,"group_id":<int64:QQ号>,"phone_number":<string>}user_id(可选);group_id(可选);phone_number(可选) | 支持 |
_get_friend_dress | 获取指定 QQ 号正在使用的个性装扮(挂件/名片/来电/输入状态等) | {"user_id":<int64:QQ号>}user_id(必需) | 支持 |
_get_model_show | 获取机型显示 | {"model":<string>}model(可选) | 支持 |
_mark_all_as_read | 标记所有消息已读 | {}无参数(传 {}) | 支持 |
_set_model_show | 设置机型 | {}无参数(传 {}) | 支持 |
add_custom_face | 添加自定义表情 | {"file":<string>,"emoji_id":<string|int64>,"package_id":<string|int64>,"file_name":<string>,"file_size":<string|int64>,"md5":<string>,"is_mark_face":<bool>,"is_origin":<bool>}file(必需);emoji_id(可选,仅NapCat);package_id(可选,仅NapCat);file_name(可选,仅NapCat);file_size(可选,仅NapCat);md5(可选,仅NapCat);is_mark_face(可选,仅NapCat);is_origin(可选,仅NapCat) | 支持 |
bot_exit | 退出登录 | {}无参数(传 {}) | 支持 |
check_url_safely | 检查URL安全性 | {"url":<string>}url(必需,仅NapCat) | 支持 |
click_inline_keyboard_button | 点击内联键盘按钮 | {"group_id":<int64:QQ号>,"bot_appid":<string|int64>,"button_id":<string>,"callback_data":<string>,"msg_seq":<string|int64>}group_id(必需);bot_appid(必需);button_id(可选·NapCat;必需·SnowLuma);callback_data(可选);msg_seq(可选·NapCat;必需·SnowLuma) | 支持 |
create_collection | 创建收藏 | {"rawData":<string>,"brief":<string>}rawData(必需,仅NapCat);brief(必需,仅NapCat) | 支持 |
delete_custom_face | 删除自定义表情 | {"res_id":<string|array>,"id":<string|array>,"ids":<array>,"md5":<string|array>,"emoji_id":<string>}res_id(可选,仅NapCat);id(可选,仅NapCat);ids(可选,仅NapCat);md5(可选,仅NapCat);emoji_id(必需,仅SnowLuma) | 支持 |
delete_essence_msg | 移出精华消息 | {"message_id":<int64|string>,"msg_seq":<string>,"msg_random":<string>,"group_id":<int64:QQ号>}message_id(可选·NapCat;必需·SnowLuma);msg_seq(可选,仅NapCat);msg_random(可选,仅NapCat);group_id(可选,仅NapCat) | 支持 |
delete_flash_file | 删除闪传文件 | {"fileset_id":<string>}fileset_id(必需) | 支持 |
fetch_ptt_text | 获取语音转文字结果 | {"message_id":<int64|string>}message_id(必需) | 支持 |
forward_group_single_msg | 转发单条消息到群 | {"message_id":<int64|string>,"group_id":<int64:QQ号>,"user_id":<int64:QQ号>}message_id(必需);group_id(可选·NapCat;必需·SnowLuma);user_id(可选,仅NapCat) | 支持 |
get_ai_characters | 获取AI角色列表 | {"group_id":<int64:QQ号>,"chat_type":<int64|string>}group_id(必需);chat_type(可选) | 支持 |
get_ai_record | 生成 AI 语音 | {"character":<string>,"group_id":<int64:QQ号>,"text":<string>,"chat_type":<int64>}character(必需);group_id(必需);text(必需);chat_type(可选,仅SnowLuma) | 支持 |
get_clientkey | 获取ClientKey | {}无参数(传 {}) | 支持 |
get_collection_list | 获取收藏列表 | {"category":<string|int64>,"count":<string|int64>}category(必需·NapCat;可选·SnowLuma);count(可选) | 支持 |
get_essence_msg_list | 获取群精华消息 | {"group_id":<int64:QQ号>}group_id(必需) | 不支持 |
get_fileset_id | 获取文件集 ID | {"share_code":<string>}share_code(必需) | 支持 |
get_fileset_info | 获取文件集信息 | {"fileset_id":<string>}fileset_id(必需) | 支持 |
get_group_todo_list | 获取群待办列表 | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
get_msg_emoji_likes | 获取一条消息的全部表情回应 | {"message_id":<int64>}message_id(必需) | 不支持 |
get_recent_contact_list | 最近会话列表 (QSICK 扩展) | countint | 扩展 |
get_robot_uin_range | 获取机器人 UIN 范围 | {}无参数(传 {}) | 支持 |
list_filesets | 列出当前账号的所有闪传文件集 | {}无参数(传 {}) | 支持 |
mark_group_msg_as_read | 标记群聊已读 | {"user_id":<string|int64>,"group_id":<int64:QQ号>,"message_id":<int64>}user_id(可选,仅NapCat);group_id(可选);message_id(可选·NapCat;必需·SnowLuma) | 支持 |
modify_custom_face | 修改收藏表情备注 | {"emoji_id":<string>,"desc":<string>}emoji_id(必需);desc(可选) | 支持 |
move_custom_face_to_front | 收藏表情移到最前 | {"emoji_id":<string>}emoji_id(必需) | 支持 |
nc_get_rkey | 获取 RKey | {}无参数(传 {}) | 支持 |
nc_get_user_status | 获取用户在线状态 | {"user_id":<int64:QQ号>}user_id(必需) | 支持 |
ocr_image | 图片 OCR 识别 | {"image":<string>}image(必需) | 支持 |
rename_flash_file | 重命名闪传文件 | {"fileset_id":<string>,"new_name":<string>}fileset_id(必需);new_name(必需) | 支持 |
request_decrypt_key | 请求数据库解密密钥 | {"db_path":<string>}db_path(必需) | 支持 |
send_ark_share | 分享用户/群 Ark 卡片(NapCat 标准名) | {"user_id":<int64:QQ号>,"group_id":<int64:QQ号>,"phone_number":<string>}user_id(可选);group_id(可选);phone_number(可选) | 支持 |
send_group_ark_share | 分享群 Ark 卡片(NapCat 标准名) | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
send_group_forward_msg | 发送群合并转发消息 | {"group_id":<int64:QQ号>,"messages":<消息段[]|消息段>,"message":<消息段>,"source":<string>,"summary":<string>,"prompt":<string>,"news":<any>}group_id(必需);messages(必需·NapCat;可选·SnowLuma);message(可选,仅SnowLuma);source(可选,仅SnowLuma);summary(可选,仅SnowLuma);prompt(可选,仅SnowLuma);news(可选,仅SnowLuma) | 支持 |
send_private_forward_msg | 发送私聊合并转发消息 | {"user_id":<int64:QQ号>,"messages":<消息段[]|消息段>,"message":<消息段>,"source":<string>,"summary":<string>,"prompt":<string>,"news":<any>}user_id(必需);messages(必需·NapCat;可选·SnowLuma);message(可选,仅SnowLuma);source(可选,仅SnowLuma);summary(可选,仅SnowLuma);prompt(可选,仅SnowLuma);news(可选,仅SnowLuma) | 支持 |
send_tuwen_ark | 发送图文 Ark 卡片(私聊/群聊) | {"user_id":<int64:QQ号>,"group_id":<int64:QQ号>,"title":<string>,"desc":<string>,"summary":<string>,"preview_url":<string>,"jump_url":<string>}user_id(可选);group_id(可选);title(必需);desc(必需);summary(可选);preview_url(可选);jump_url(必需) | 支持 |
set_essence_msg | 设置精华消息 | {"message_id":<int64|string>}message_id(必需) | 支持 |
set_friends_category | 移动好友到指定分组 | {"uin":<int64:QQ号>,"categoryId":<int64>,"categoryName":<string>}uin(必需);categoryId(可选);categoryName(可选) | 支持 |
set_group_reaction | 群聊表情回应 | {"group_id":<int64:QQ号>,"message_id":<int64>,"code":<string>,"is_set":<bool>}group_id(可选);message_id(必需);code(必需);is_set(可选) | 不支持 |
set_qq_avatar | 设置QQ头像 | {"file":<string>}file(必需) | 支持 |
share_group_ex | 分享群 Ark 卡片 | {"group_id":<int64:QQ号>}group_id(必需) | 支持 |
share_peer | 分享用户/群 Ark 卡片 | {"user_id":<int64:QQ号>,"group_id":<int64:QQ号>,"phone_number":<string>}user_id(可选);group_id(可选);phone_number(可选) | 支持 |
translate_en2zh | 英文单词翻译 | {"words":<array>}words(必需) | 支持 |
upload_forward_msg | 上传转发消息 | {"messages":<消息段>,"message":<消息段>,"group_id":<int64:QQ号>}messages(可选);message(可选);group_id(可选) | 支持 |
upload_foward_msg | 上传转发消息(别名拼写) | {"messages":<消息段>,"message":<消息段>,"group_id":<int64:QQ号>}messages(可选);message(可选);group_id(可选) | 支持 |
upload_images_to_qun_album | 上传多张图片到群相册 | {"group_id":<int64:QQ号>,"album_id":<string>,"album_name":<string>,"files":<array>}group_id(必需);album_id(必需);album_name(必需);files(必需) | 支持 |
兼容别名(3)
| 别名 | 指向的动作 |
|---|---|
send_group_poke | group_poke |
send_friend_poke | friend_poke |
get_group_member_list_no_cache | get_group_member_list |
CSV 额外收录(8)
下列动作出现在 动作类-NapCat-SnowLuma.csv,但当前动作注册表 actions.json 没有同名项,因此未并入上面的注册动作表;实际调用前请先确认注册表是否存在对应能力。
| 动作 | 说明 | 请求体 / 参数要求 | 状态 |
|---|---|---|---|
set_custom_face_desc | 修改自定义表情描述 | {"emoji_id":<int64|string>,"res_id":<string>,"md5":<string>,"desc":<string>}emoji_id(必需);res_id(必需);md5(必需);desc(必需) | 不支持 |
test_download_stream | 测试下载流 | {"error":<bool>}error(可选) | 不支持 |
.ocr_image | 图片 OCR 识别(内部) | {"image":<string>}image(必需) | 不支持 |
send_group_sign | 群签到 | {"group_id":<int64:QQ号>}group_id(必需) | 不支持 |
ArkShareGroup | 分享群 Ark 卡片(已标记 deprecated) | {"group_id":<int64:QQ号>}group_id(必需) | 不支持 |
.handle_quick_operation | 处理快速操作(go-cqhttp 兼容扩展) | {"context":<事件对象>,"operation":{"reply":<消息>,"auto_escape":<bool>,"at_sender":<bool>,"delete":<bool>,"kick":<bool>,"ban":<bool>,"ban_duration":<int64>,"approve":<bool>,"remark":<string>,"reason":<string>}}context(必需,原事件对象:time/self_id/post_type/user_id 等);operation(必需);operation.reply(可选,回复内容);operation.auto_escape(可选,按纯文本发送);operation.at_sender(可选,群聊回复时先 @ 发送者);operation.delete(可选,仅声明,当前实现未处理);operation.kick(可选,仅声明,当前实现未处理);operation.ban(可选,仅声明,当前实现未处理);operation.ban_duration(可选,仅声明,当前实现未处理);operation.approve(可选,请求事件用);operation.remark(可选,仅声明,当前实现未使用);operation.reason(可选,拒绝入群理由) | 不支持 |
delete_qzone_comment | 删除自己空间里的一条评论(NapCat/SnowLuma 均无此动作) | {"feed_ref":<object>,"tid":<string|int64>,"comment_id":<string>}tid 或 feed_ref(二选一);comment_id(必需) | 支持 |
delete_qzone_reply | 删除自己空间里的一条回复(NapCat/SnowLuma 均无此动作) | {"feed_ref":<object>,"tid":<string|int64>,"comment_id":<string>,"reply_id":<string>}tid 或 feed_ref(二选一);comment_id(必需);reply_id(必需) | 支持 |
事件一览
事件能力表:事件类-NapCat-SnowLuma.csv 收录 28 类事件,22 支持、6 不支持(好友添加、群名片变更、资料点赞、群灰条、在线文件接收/发送);下表补充事件形状与 QSICK 扩展。
CSV 事件能力表(28)
| 事件 | 请求体 / 参数要求 | 状态 |
|---|---|---|
私聊消息事件(post_type=message,message_type=private)EVT-01 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"message","message_type":"private","sub_type":"friend|group","message_id":<int64>,"message_seq":<int64>,"user_id":<int64:QQ号>,"message":[<消息段>],"raw_message":<string>,"font":<int32>,"sender":<object>}time(非空);self_id(非空);post_type(非空,message);message_type(非空,private);sub_type(非空,friend|group;group 为临时会话);message_id(非空);message_seq(非空);user_id(非空);message(非空,消息段数组);raw_message(非空);font(非空);sender(非空,含 user_id/nickname/card/role/sex/age);group_id(可空,临时会话来源群:NapCat 在顶层、SnowLuma 在 sender.group_id);temp_source(仅NapCat,临时会话时);message_format(仅NapCat,恒 array);real_id(仅NapCat);real_seq(仅NapCat);auto_reply(仅SnowLuma,自动回复时);target_id(仅SnowLuma,自身消息回显时) | 支持 |
群消息事件(post_type=message,message_type=group)EVT-02 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"message","message_type":"group","sub_type":"normal","message_id":<int64>,"message_seq":<int64>,"group_id":<int64:群号>,"group_name":<string>,"user_id":<int64:QQ号>,"message":[<消息段>],"raw_message":<string>,"font":<int32>,"sender":<object>}time(非空);self_id(非空);post_type(非空,message);message_type(非空,group);sub_type(非空,normal);message_id(非空);message_seq(非空);group_id(非空);group_name(非空);user_id(非空);message(非空,消息段数组);raw_message(非空);font(非空);sender(非空,含 user_id/nickname/card/role/sex/age);message_format(仅NapCat,恒 array);real_id(仅NapCat);real_seq(仅NapCat);anonymous(仅SnowLuma,恒 null) | 支持 |
私聊自身消息回显事件(post_type=message_sent)EVT-03 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"message_sent","message_type":"private","sub_type":"friend|group","message_id":<int64>,"message_seq":<int64>,"user_id":<int64:QQ号>,"message":[<消息段>],"raw_message":<string>,"font":<int32>,"sender":<object>}time(非空);self_id(非空);post_type(非空,message_sent);message_type(非空,private);sub_type(非空,friend|group);message_id(非空);message_seq(非空);user_id(非空);message(非空);raw_message(非空);font(非空);sender(非空);group_id(可空,临时会话来源群);message_sent_type(仅NapCat,恒 self);message_format(仅NapCat);real_id(仅NapCat);real_seq(仅NapCat);target_id(仅SnowLuma,发往非自身会话时) | 支持 |
群自身消息回显事件(post_type=message_sent)EVT-04 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"message_sent","message_type":"group","sub_type":"normal","message_id":<int64>,"message_seq":<int64>,"group_id":<int64:群号>,"group_name":<string>,"user_id":<int64:QQ号>,"message":[<消息段>],"raw_message":<string>,"font":<int32>,"sender":<object>}time(非空);self_id(非空);post_type(非空,message_sent);message_type(非空,group);sub_type(非空,normal);message_id(非空);message_seq(非空);group_id(非空);group_name(非空);user_id(非空);message(非空);raw_message(非空);font(非空);sender(非空);message_format(仅NapCat);real_id(仅NapCat);real_seq(仅NapCat);message_sent_type(仅NapCat) | 支持 |
好友添加事件(notice/friend_add)EVT-05 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"friend_add","user_id":<int64:QQ号>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,friend_add);user_id(非空) | 不支持 |
好友消息撤回事件(notice/friend_recall)EVT-06 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"friend_recall","user_id":<int64:QQ号>,"message_id":<int64>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,friend_recall);user_id(非空);message_id(非空) | 支持 |
群文件上传事件(notice/group_upload)EVT-07 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"group_upload","group_id":<int64:群号>,"user_id":<int64:QQ号>,"file":{"id":<string>,"name":<string>,"size":<int64>,"busid":<int64>}}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,group_upload);group_id(非空);user_id(非空);file(非空);file.id(非空);file.name(非空);file.size(非空);file.busid(非空) | 支持 |
群管理员变动事件(notice/group_admin)EVT-08 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"group_admin","sub_type":"set|unset","group_id":<int64:群号>,"user_id":<int64:QQ号>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,group_admin);sub_type(非空,set|unset);group_id(非空);user_id(非空) | 支持 |
群禁言事件(notice/group_ban)EVT-09 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"group_ban","sub_type":"ban|lift_ban","group_id":<int64:群号>,"user_id":<int64:QQ号>,"operator_id":<int64:QQ号>,"duration":<int64>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,group_ban);sub_type(非空,ban|lift_ban);group_id(非空);user_id(非空);operator_id(非空);duration(非空,秒) | 支持 |
群成员名片变更事件(notice/group_card)EVT-10 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"group_card","group_id":<int64:群号>,"user_id":<int64:QQ号>,"card_new":<string>,"card_old":<string>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,group_card);group_id(非空);user_id(非空);card_new(非空);card_old(非空) | 不支持 |
群成员减少事件(notice/group_decrease)EVT-11 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"group_decrease","sub_type":"leave|kick|kick_me|disband","group_id":<int64:群号>,"user_id":<int64:QQ号>,"operator_id":<int64:QQ号>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,group_decrease);sub_type(非空,leave|kick|kick_me|disband);group_id(非空);user_id(非空);operator_id(非空,主动退群时为 0) | 支持 |
群成员增加事件(notice/group_increase)EVT-12 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"group_increase","sub_type":"approve|invite","group_id":<int64:群号>,"user_id":<int64:QQ号>,"operator_id":<int64:QQ号>,"invitor_id":<int64:QQ号>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,group_increase);sub_type(非空,approve|invite);group_id(非空);user_id(非空);operator_id(非空);invitor_id(仅SnowLuma,邀请人,未知时为 0);invitor_status(仅SnowLuma,恒 known|unknown) | 支持 |
群消息撤回事件(notice/group_recall)EVT-13 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"group_recall","group_id":<int64:群号>,"user_id":<int64:QQ号>,"operator_id":<int64:QQ号>,"message_id":<int64>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,group_recall);group_id(非空);user_id(非空,消息作者);operator_id(非空,撤回者);message_id(非空) | 支持 |
群精华消息变更事件(notice/essence)EVT-14 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"essence","sub_type":"add|delete","group_id":<int64:群号>,"message_id":<int64>,"sender_id":<int64:QQ号>,"operator_id":<int64:QQ号>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,essence);sub_type(非空,add|delete);group_id(非空);message_id(非空);sender_id(非空);operator_id(非空);message_seq(仅SnowLuma);random(仅SnowLuma) | 支持 |
群消息表情回应事件(notice/group_msg_emoji_like)EVT-15 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"group_msg_emoji_like","group_id":<int64:群号>,"user_id":<int64:QQ号>,"message_id":<int64>,"likes":[{"emoji_id":<string>,"count":<int64>}]}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,group_msg_emoji_like);group_id(非空);user_id(非空,操作者);message_id(非空);likes(非空,{emoji_id,count}[]);is_add(仅NapCat,布尔);message_seq(仅NapCat,字段已声明但当前未赋值);sub_type(仅SnowLuma,add|remove);operator_id(仅SnowLuma) | 支持 |
机器人离线事件(notice/bot_offline)EVT-16 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"bot_offline","user_id":<int64:QQ号>,"tag":<string>,"message":<string>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,bot_offline);user_id(非空,自身QQ号);tag(非空);message(非空) | 支持 |
戳一戳事件(notice/notify/poke,好友与群聊)EVT-17 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"notify","sub_type":"poke","group_id":<int64:群号>,"user_id":<int64:QQ号>,"target_id":<int64:QQ号>,"sender_id":<int64:QQ号>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,notify);sub_type(非空,poke);group_id(可空,群聊戳一戳时非空);user_id(非空);target_id(非空);sender_id(可空,好友戳一戳时,两实现都有);raw_info(仅NapCat,原始消息);action(仅SnowLuma);suffix(仅SnowLuma);action_img_url(仅SnowLuma) | 支持 |
输入状态事件(notice/notify/input_status)EVT-18 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"notify","sub_type":"input_status","user_id":<int64:QQ号>,"event_type":<int64>,"status_text":<string>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,notify);sub_type(非空,input_status);user_id(非空);event_type(非空,1=输入中/3=录音中);status_text(非空);group_id(仅NapCat,恒 0) | 支持 |
群头衔变更事件(notice/notify/title)EVT-19 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"notify","sub_type":"title","group_id":<int64:群号>,"user_id":<int64:QQ号>,"title":<string>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,notify);sub_type(非空,title);group_id(非空);user_id(非空,被授予者);title(非空) | 支持 |
群名称变更事件(notice/notify/group_name)EVT-20 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"notify","sub_type":"group_name","group_id":<int64:群号>,"user_id":<int64:QQ号>,"name_new":<string>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,notify);sub_type(非空,group_name);group_id(非空);user_id(非空,操作者);name_new(非空) | 支持 |
资料点赞事件(notice/notify/profile_like)EVT-21 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"notify","sub_type":"profile_like","operator_id":<int64:QQ号>,"operator_nick":<string>,"times":<int64>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,notify);sub_type(非空,profile_like);operator_id(非空);operator_nick(非空);times(非空) | 不支持 |
群灰条通知事件(notice/notify/gray_tip)EVT-22 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"notify","sub_type":"gray_tip","group_id":<int64:群号>,"user_id":<int64:QQ号>,"message_id":<int64>,"busi_id":<string>,"content":<string>,"raw_info":<object>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,notify);sub_type(非空,gray_tip);group_id(非空);user_id(非空);message_id(非空);busi_id(非空);content(非空,JSON 字符串);raw_info(非空) | 不支持 |
在线文件接收事件(notice/online_file_receive)EVT-23 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"online_file_receive","sub_type":"cancel","peer_id":<int64:QQ号>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,online_file_receive);sub_type(非空,cancel);peer_id(非空) | 不支持 |
在线文件发送事件(notice/online_file_send)EVT-24 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"notice","notice_type":"online_file_send","sub_type":"receive|refuse","peer_id":<int64:QQ号>}time(非空);self_id(非空);post_type(非空,notice);notice_type(非空,online_file_send);sub_type(非空,receive|refuse);peer_id(非空) | 不支持 |
好友请求事件(request/friend)EVT-25 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"request","request_type":"friend","user_id":<int64:QQ号>,"comment":<string>,"flag":<string>}time(非空);self_id(非空);post_type(非空,request);request_type(非空,friend);user_id(非空);comment(非空);flag(非空,审批时回传) | 支持 |
群请求事件(request/group)EVT-26 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"request","request_type":"group","sub_type":<string>,"group_id":<int64:群号>,"user_id":<int64:QQ号>,"comment":<string>,"flag":<string>,"invited_id":<int64:QQ号>}time(非空);self_id(非空);post_type(非空,request);request_type(非空,group);sub_type(非空,add|invite 等);group_id(非空);user_id(非空);comment(非空);flag(非空);invited_id(可空,仅SnowLuma,邀请类请求的目标 QQ) | 支持 |
生命周期事件(meta_event/lifecycle)EVT-27 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"meta_event","meta_event_type":"lifecycle","sub_type":"connect|enable|disable"}time(非空);self_id(非空);post_type(非空,meta_event);meta_event_type(非空,lifecycle);sub_type(非空,connect|enable|disable);status(仅SnowLuma,{online,good}) | 支持 |
心跳事件(meta_event/heartbeat)EVT-28 | {"time":<int64>,"self_id":<int64:QQ号>,"post_type":"meta_event","meta_event_type":"heartbeat","status":{"online":<bool>,"good":<bool>},"interval":<int64>}time(非空);self_id(非空);post_type(非空,meta_event);meta_event_type(非空,heartbeat);status(非空,{online,good});interval(非空,毫秒) | 支持 |
事件由宿主的 post_type 与子类型决定;同一份事件会分发给所有协议连接。下表列 OneBot v11 的标准事件与 QSICK 在 v11 形状下额外产出的事件。包体示例省略了与动作无关的字段时,以实际 JSON 为准。
消息事件
| 事件 | 触发 | 关键字段 / 包体示例 |
|---|---|---|
message.private | 好友私聊消息 | {"post_type":"message","message_type":"private","sub_type":"friend","message_id":12345,"user_id":123456789,"message":[{"type":"text","data":{"text":"hello"}}],"sender":{"user_id":123456789,"nickname":"A"},"time":1700000000} |
message.group | 群消息 | {"post_type":"message","message_type":"group","group_id":987654321,"user_id":123456789,"message":[{"type":"text","data":{"text":"hello"}}],"sender":{"user_id":123456789,"card":"","role":"member"},"time":1700000000} |
message.temp | 临时会话(群临时) | {"post_type":"message","message_type":"private","sub_type":"group","group_id":987654321,"user_id":123456789,"message":[{"type":"text","data":{"text":"hi"}}]} |
message_sent.* | 本账号发出的消息回显 | {"post_type":"message_sent","message_type":"group","group_id":987654321,"message":[{"type":"text","data":{"text":"sent"}}]} |
通知事件
| 事件 | 触发 / 关键字段 |
|---|---|
notice.group_upload | 群文件上传(file: {id, name, size, busid}) |
notice.group_admin | 群管理员变更(sub_type=set/unset, user_id, operator_id) |
notice.group_decrease | 群成员减少(sub_type=leave/kick/kick_me, operator_id) |
notice.group_increase | 群成员增加(sub_type=approve/invite, operator_id) |
notice.group_ban | 禁言(sub_type=ban/lift_ban, duration, operator_id) |
notice.group_recall | 群消息撤回(message_id, operator_id) |
notice.friend_recall | 好友消息撤回(message_id) |
notice.friend_add | 好友添加(user_id) |
notice.group_card | 群名片变更(card, user_id) |
notice.offline_file | 离线文件(file: {name, size, url}) |
notice.client_status | 客户端状态(online) |
notice.essence | 群精华消息(sub_type=add/delete, message_id, operator_id) |
notice.notify(poke) | 戳一戳(target_id, user_id) |
notice.notify(lucky_king) | 运气王(target_id, user_id) |
notice.notify(honor) | 群荣誉(honor_type, user_id) |
notice.group_name | QSICK 扩展:群名变更(group_id, group_name, operator_id) |
notice.group_disband | QSICK 扩展:群解散(group_id, operator_id) |
notice.group_title | QSICK 扩展:群头衔(sub_type=set/unset, title, user_id) |
notice.group_essence | QSICK 扩展:精华消息(sub_type=add/delete, message_id) |
notice.group_msg_emoji_like | QSICK 扩展:表情回应(message_id, likes: [{emoji_id, count}]) |
请求与元事件
| 事件 | 触发 / 关键字段 |
|---|---|
request.friend | 好友申请(user_id, comment, flag) |
request.group | 入群申请 / 邀请(sub_type=add/invite, group_id, user_id, comment, flag) |
meta_event.lifecycle | 生命周期(sub_type=connect/enable/disable) |
meta_event.heartbeat | 心跳(status, interval, time) |
通知事件包体示例
{"post_type":"notice","notice_type":"group_recall","time":1700000000,"self_id":10001,"group_id":987654321,"user_id":123456789,"operator_id":123456789,"message_id":12345}
{"post_type":"notice","notice_type":"group_upload","time":1700000000,"self_id":10001,"group_id":987654321,"user_id":123456789,"file":{"id":"f-1","name":"a.zip","size":1024,"busid":102}}
{"post_type":"notice","notice_type":"notify","sub_type":"poke","time":1700000000,"self_id":10001,"group_id":987654321,"user_id":123456789,"target_id":10001}
{"post_type":"request","request_type":"friend","time":1700000000,"self_id":10001,"user_id":123456789,"comment":"hello","flag":"flag-1"}事件的具体字段由宿主能力决定:拿不到的值不会伪造;事件编码失败只影响对应协议的连接,其余连接照常收到。