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

@@ -7,6 +7,7 @@ import {
} from './to-message';
import {
convertFriendAdd,
convertFriendInputStatus,
convertFriendPoke,
convertFriendRecall,
convertGroupAdmin,
@@ -78,6 +79,7 @@ const CONVERTERS: ConverterRegistry = {
group_essence: convertGroupEssence,
group_file_upload: convertGroupFileUpload,
friend_add: convertFriendAdd,
friend_input_status: convertFriendInputStatus,
group_msg_emoji_like: convertGroupMsgEmojiLike,
// Requests.
friend_request: convertFriendRequest,