feat(onebot): configure group history visibility

Fixes #336
This commit is contained in:
DrSmoothl committed 2026-08-09 12:53:45 +08:00
1 parent cd6fcadea4
commit e08613062e
10 files changed
+305 -1

No files matched your search

@@ -70,6 +70,18 @@ export interface Oidb0x89a_0InvitePolicy {
settings?: pb<2, Oidb0x89a_0InvitePolicySettings>;
field12?: pb<12, uint_32>;
}
// 0x89A_0 — whether newly joined members may browse group history. Current QQ's
// GroupDetailInfoV2 encoder emits groupFlagExt4=42 and its mutation mask=43.
export interface Oidb0x89a_0HistoryVisibilitySettings {
// Explicit presence is required when clearing the only selected bit.
groupFlagExt4?: pb_optional<42, uint_32>;
groupFlagExt4Mask?: pb_optional<43, uint_32>;
}
export interface Oidb0x89a_0HistoryVisibility {
groupUin?: pb<1, uint_64>;
settings?: pb<2, Oidb0x89a_0HistoryVisibilitySettings>;
field12?: pb<12, uint_32>;
}
export interface OidbKickMember {
groupUin?: pb<1, uint_32>;
targetUid?: pb<3, string>;
@@ -332,6 +344,8 @@ export interface OidbGroupDetailFlags {
shutUpAllTimestamp?: pb<59, bool>;
/** Current complete app privilege bitfield; needed for masked mutations. */
privilegeFlag?: pb<99, bool>;
/** Current complete groupFlagExt4 bitfield; needed for masked mutations. */
groupFlagExt4?: pb<101, bool>;
}
export interface OidbGroupDetailConfig {
uin?: pb<1, uint_64>;
+2
View File
@@ -119,6 +119,8 @@ export interface OidbSvcTrpcTcp0x88D_0Results {
shutUpAllTimestamp?: pb<59, uint_32>;
/** Complete app privilege bitfield (requested with detail flag tag 99). */
privilegeFlag?: pb<99, uint_32>;
/** Complete groupFlagExt4 bitfield (requested with detail flag tag 101). */
groupFlagExt4?: pb<101, uint_32>;
}
export interface OidbSvcTrpcTcp0x88D_0ResponseGroupInfo {
uin?: pb<1, uint_64>;