feat(onebot): support private window shake messages

Encode poke message segments as private window shake messages while keeping the dedicated send_poke action unchanged.

Restrict window shakes to a single ordinary private-chat segment. Reject group, temporary-session, mixed-message, and forwarded usage before identity lookup, media upload, or packet transmission.

Add full outbound request coverage, OneBot action regressions, and live private-chat verification for issue #259.

Closes #259
This commit is contained in:
DrSmoothl committed 2026-07-21 19:28:17 +08:00
1 parent d8d556eb70
commit ff60221330
15 files changed
+529 -44

No files matched your search

+1 -1
View File
@@ -149,7 +149,7 @@ export interface FileElement {
sha1Hex?: string;
}
/** Receive-side representation only; sending uses the dedicated poke Action. */
/** Window-shake element; outbound use is limited to ordinary friend C2C. */
export interface PokeElement {
type: 'poke';
subType: number;