Files
NapCatQQ/packages/napcat-onebot/api
Makoto 8d6101913b feat: Add OB11GroupGrayTipEvent for detecting forged gray tip attacks (#1492)
* feat: Add OB11GroupGrayTipEvent for detecting forged gray tip attacks

- Add new OB11GroupGrayTipEvent class to report unknown gray tip messages
- Modify parseOtherJsonEvent to detect forged gray tips by checking senderUin
- Real system gray tips have senderUin='0', forged ones expose attacker's QQ
- Include message_id in event for downstream recall capability
- Add try/catch for JSON.parse to handle malformed content
- Use Number() for consistent type conversion

* fix: simplify logWarn to match upstream style

* fix: remove extra closing brace that broke class structure

* fix: add validation for malformed title gray tip events
2026-01-02 20:55:24 +08:00
..
2025-11-13 15:39:42 +08:00
2025-11-13 15:39:42 +08:00
2025-12-27 00:20:59 +08:00
2025-11-13 15:39:42 +08:00
2025-11-13 15:39:42 +08:00