feat(onebot): report C2C input status as notify/input_status

Decode the 0x210/0x115 input-state sys_msg (RE'd from wrapper.linux.node
aio_input_state_worker) into a friend_input_status event and map it to a
notify/input_status notice, matching NapCat's onInputStatusPush.
event_type 1 = typing, 3 = recording voice; status_text synthesised to
match the client's own strings.
This commit is contained in:
DrSmoothl committed 2026-07-07 01:26:31 +08:00
1 parent d35e276730
commit 852870db59
8 files changed
+138 -1

No files matched your search

+9
View File
@@ -67,6 +67,15 @@ export enum Event0x210SubType {
*/
NewFriendNotice = 179,
NewFriendNoticeAlt = 226,
/**
* C2C input-status notify — the "对方正在输入…" push. subMsgType 0x115 (277).
* RE-confirmed against `wrapper.linux.node`
* `aio_input_state_worker.cc::IsInputStateNotifySysMsg`, which matches exactly
* `(msg_type ^ 0x210) | (sub_msg_type ^ 0x115) == 0`. The payload
* (`InputStatusNotify`) rides in `body.msgContent`. Mirrors NapCat's
* `onInputStatusPush`.
*/
InputStatusNotice = 277,
/**
* Group-app state push (troop shortcut bar / discussion app).
*