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
@@ -262,3 +262,22 @@ export interface GroupReactNotify {
|
||||
field13?: pb<13, uint_32>;
|
||||
groupReactionData?: pb<44, GroupReactionData>;
|
||||
}
|
||||
|
||||
// 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`
|
||||
// `aio_input_state_worker.cc::ProcessInputStateNotifySysMsg` (reads f1=fromUid,
|
||||
// f2=toUid, f3=notifyItem; the item's f4 is the event type).
|
||||
export interface InputStatusNotifyItem {
|
||||
field2?: pb<2, uint_32>;
|
||||
field3?: pb<3, uint_64>;
|
||||
eventType?: pb<4, uint_32>; // 1 = 正在输入 (typing), 3 = 正在讲话 (recording voice)
|
||||
field5?: pb<5, uint_32>;
|
||||
statusText?: pb<6, string>;
|
||||
}
|
||||
|
||||
export interface InputStatusNotify {
|
||||
fromUid?: pb<1, string>;
|
||||
toUid?: pb<2, string>;
|
||||
notifyItem?: pb<3, InputStatusNotifyItem>;
|
||||
}
|
||||
Reference in new issue
Block a user