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
11 lines
268 B
TypeScript
11 lines
268 B
TypeScript
import type { pb } from '@snowluma/proton';
|
|
|
|
interface GroupAlbumMediaListReqInfoWireOracle {
|
|
reserved?: pb<4, string>;
|
|
pageInfo?: pb<5, string>;
|
|
}
|
|
|
|
export interface GroupAlbumMediaListRequestWireOracle {
|
|
reqInfo?: pb<4, GroupAlbumMediaListReqInfoWireOracle>;
|
|
}
|