feat(onebot): report profile like as notify/profile_like
Decode the multiplexed 0x210 subType-39 push: when body.msgContent is a
ProfileLikeTip with inner msgType==0/subType==203, emit notify/profile_like
{operator_id, operator_nick, times}. times is parsed from detail.txt.
Proto shape from NapCat's raw decoder; wiring + decode verified, but the
byte-exact wire is pending a real like capture to confirm.
This commit is contained in:
8 files changed
+135
-1
No files matched your search
@@ -67,6 +67,14 @@ export enum Event0x210SubType {
|
||||
*/
|
||||
NewFriendNotice = 179,
|
||||
NewFriendNoticeAlt = 226,
|
||||
/**
|
||||
* Multiplexed subType (Lagrange calls it FriendDeleteOrPinChanged=39). One of
|
||||
* its variants is the profile-like ("名片赞") push: body.msgContent decodes as
|
||||
* `ProfileLikeTip` and is a like only when inner msgType==0 && subType==203.
|
||||
* NapCat routes 528/39 → parseLikeEvent (`api/msg.ts:1547`); other 39 variants
|
||||
* (multi-device sync etc.) fall through.
|
||||
*/
|
||||
ProfileLikeNotice = 39,
|
||||
/**
|
||||
* C2C input-status notify — the "对方正在输入…" push. subMsgType 0x115 (277).
|
||||
* RE-confirmed against `wrapper.linux.node`
|
||||
|
||||
Reference in new issue
Block a user