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:
DrSmoothl committed 2026-07-07 03:05:14 +08:00
1 parent 0d4d58605f
commit 447b40a259
8 files changed
+135 -1

No files matched your search

+14 -1
View File
@@ -329,6 +329,18 @@ export interface GroupNameChangeEvent extends QQEvent {
name: string; // the new group name
}
/**
* Someone liked the bot's profile card ("名片赞") — Event 0x210 subType 39,
* inner ProfileLikeTip msgType 0 / subType 203. Mirrors NapCat's
* OB11ProfileLikeEvent → `notice/notify` `sub_type:'profile_like'`.
*/
export interface FriendProfileLikeEvent extends QQEvent {
kind: 'friend_profile_like';
operatorUin: number; // who liked
operatorNick: string;
times: number; // like count from this event
}
/**
* C2C "对方正在输入…" input-status push (Event 0x210 subType 0x115 / 277).
* `eventType` 1 = typing, 3 = recording a voice message. Mirrors NapCat's
@@ -364,4 +376,5 @@ export type QQEventVariant =
| FriendInputStatusEvent
| GroupNameChangeEvent
| GroupCardChangeEvent
| GroupTitleChangeEvent;
| GroupTitleChangeEvent
| FriendProfileLikeEvent;