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:
8 files changed
+138
-1
No files matched your search
@@ -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).
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user