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
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user