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
@@ -294,6 +294,19 @@ export interface PttTransResultEvent extends QQEvent {
|
||||
text: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* C2C "对方正在输入…" input-status push (Event 0x210 subType 0x115 / 277).
|
||||
* `eventType` 1 = typing, 3 = recording a voice message. Mirrors NapCat's
|
||||
* `onInputStatusPush` → OB11 `notice/notify` `sub_type:'input_status'`.
|
||||
*/
|
||||
export interface FriendInputStatusEvent extends QQEvent {
|
||||
kind: 'friend_input_status';
|
||||
userUin: number; // the peer whose input status changed (the typer)
|
||||
userUid: string;
|
||||
eventType: number; // 1 = 正在输入, 3 = 正在讲话(录音)
|
||||
statusText: string;
|
||||
}
|
||||
|
||||
export type QQEventVariant =
|
||||
| FriendMessage
|
||||
| GroupMessage
|
||||
@@ -312,4 +325,5 @@ export type QQEventVariant =
|
||||
| GroupFileUploadEvent
|
||||
| FriendAddEvent
|
||||
| GroupMsgEmojiLikeEvent
|
||||
| PttTransResultEvent;
|
||||
| PttTransResultEvent
|
||||
| FriendInputStatusEvent;
|
||||
Reference in new issue
Block a user