fix(onebot): expose robot status for group members

Fetch QQ's versioned robot UIN ranges, classify and persist member status, and surface is_robot from both group member actions.

Preserve unknown legacy cache entries and fail visibly when classification is unavailable.

Closes #265
This commit is contained in:
DrSmoothl committed 2026-07-21 23:27:01 +08:00
1 parent ff60221330
commit eed2e692b1
16 files changed
+596 -36

No files matched your search

@@ -338,6 +338,15 @@ export interface OidbGroupMemberListRequest {
body?: pb<4, OidbGroupMemberListBody>;
token?: pb<15, string>;
}
// 0x496_0 — fetch QQ's versioned robot-UIN classification ranges.
// Field names follow NodeIKernelRobotService.getRobotUinRange. QQ sends the
// four scalar values directly (there is no nested `req` message on the wire).
export interface OidbRobotUinRangeRequest {
justFetchMsgConfig?: pb<5, uint_32>;
type?: pb<6, uint_32>;
version?: pb_optional<7, uint_32>;
aioKeywordVersion?: pb_optional<8, uint_32>;
}
export interface GroupRecallInfo {
sequence?: pb<1, uint_32>;
random?: pb<2, uint_32>;
+18
View File
@@ -160,6 +160,24 @@ export interface OidbSvcTrpcTcp0xFE7_3Response {
token?: pb<15, string>;
}
// OIDB 0x496_0 — dynamic robot UIN ranges. QQ's native
// NodeIKernelRobotService uses this config when deciding whether a group
// member is a robot; the ranges are server-versioned and must not be
// hard-coded client-side.
export interface OidbRobotUinRange {
minUin?: pb<1, uint_64>;
maxUin?: pb<2, uint_64>;
}
export interface OidbRobotUinRangeConfig {
version?: pb<1, uint_32>;
ranges?: pb_repeated<2, OidbRobotUinRange>;
}
export interface OidbRobotUinRangeResponse {
robotConfig?: pb<5, OidbRobotUinRangeConfig>;
}
// OIDB.0x10C0 Group Request
export interface OidbSvcTrpcTcp0x10C0ResponseUser {
uid?: pb<1, string>;