fix(core): send group album pagination cursors

Encode the opaque media-list cursor in the protobuf page-info field while leaving the reserved field empty. This restores subsequent-page requests without changing the OneBot action or response shape.

Add an independent wire oracle so future protocol definition drift cannot make the encoder regression test pass against itself.

Fixes #245
This commit is contained in:
DrSmoothl committed 2026-07-19 16:28:01 +08:00
1 parent 613b2b1e68
commit 78101b3512
4 files changed
+32 -9

No files matched your search

@@ -0,0 +1,10 @@
import type { pb } from '@snowluma/proton';
interface GroupAlbumMediaListReqInfoWireOracle {
reserved?: pb<4, string>;
pageInfo?: pb<5, string>;
}
export interface GroupAlbumMediaListRequestWireOracle {
reqInfo?: pb<4, GroupAlbumMediaListReqInfoWireOracle>;
}