test(onebot): confirm profile_like decode against real captures

Validated the 0x210/39 ProfileLikeTip field layout byte-exact against three
real captured like pushes (detail.txt='赞了我的资料卡N次', f3=uin, f5=nick).
Drop the pending-validation caveat; test now uses the real txt shape.
This commit is contained in:
DrSmoothl committed 2026-07-07 15:10:06 +08:00
1 parent 447b40a259
commit eda1c32994
3 files changed
+10 -9

No files matched your search

+3 -3
View File
@@ -284,9 +284,9 @@ export interface GroupSpecialTitleChange {
// Profile-like ("名片赞") notify — Event 0x210 subType 39, whose body.msgContent
// decodes as this ProfileLikeTip. subType 39 is multiplexed; only inner
// msgType==0 && subType==203 is a like. NOTE: proto shape sourced from NapCat's
// raw-bytes decoder (adaptDecoder.ts) — semantics only; pending a real like
// capture to confirm byte-exactly. times is parsed from `detail.txt`.
// msgType==0 && subType==203 is a like. Field numbers CONFIRMED byte-exact against
// real on-wire captures (detail.txt = "赞了我的资料卡N次", f3=liker uin, f5=nick);
// the like count is parsed from `detail.txt`.
export interface ProfileLikeDetail {
txt?: pb<1, string>;
uin?: pb<3, uint_64>;