fix(protocol): return group join question and answer in admin settings

get_group_admin_settings reported the join mode correctly but left the
question and answer blank. The detail request now asks for those
strings the same way the official client does.

Closes #393
This commit is contained in:
DrSmoothl committed 2026-08-19 00:15:32 +08:00
1 parent b088ffaff0
commit 0a924634b2
4 files changed
+27 -3

No files matched your search

+5 -2
View File
@@ -358,8 +358,11 @@ export interface OidbGroupDetailFlags {
uin?: pb<21, bool>;
lastSequence?: pb<22, bool>;
lastMessageTime?: pb<23, bool>;
question?: pb<24, bool>;
answer?: pb<25, string>;
// EncodeSingleGroupInfoParamByBaseFilter writes these as empty strings
// (length-delimited). A bool true is a different wire type and the
// server ignores it; a plain pb<> empty string is omitted.
question?: pb_optional<24, string>;
answer?: pb_optional<25, string>;
maxAdminCount?: pb<29, string>;
// Official request mask for group shutup expire (proto tag 45 → 60027).
// Lagrange's tag 59 requests 60259, which is a different field.