feat(onebot): report group name change as notify/group_name

Dispatch the 0x2DC subType-16 push by NotifyMessageBody.field13 (was
emoji-react only); field13==12 decodes eventParam as GroupNameChange and
emits notify/group_name {group_id, user_id=operator, name_new}, matching
NapCat. Emoji-react (field13==35) path unchanged.
This commit is contained in:
DrSmoothl committed 2026-07-07 02:05:52 +08:00
1 parent 852870db59
commit bfde0daab4
7 files changed
+128 -3

No files matched your search

+8
View File
@@ -263,6 +263,14 @@ export interface GroupReactNotify {
groupReactionData?: pb<44, GroupReactionData>;
}
// Group-name change (Event 0x2DC subType 16, NotifyMessageBody.field13 == 12).
// Rides in `NotifyMessageBody.eventParam` (field 5). Field layout matches
// Lagrange's `GroupNameChange` (RE'd from wrapper.linux.node): only the new
// name at field 2. The operator uid is `NotifyMessageBody.operatorUid` (f21).
export interface GroupNameChange {
name?: pb<2, string>;
}
// C2C input-status notify — the "对方正在输入…" push. Delivered as a system
// message (msgType 0x210 / subMsgType 0x115) whose `MsgBody.msgContent` carries
// this body. Field layout RE'd from `wrapper.linux.node`