feat(onebot): add group share links

Retrieve group invitation links with compatible request defaults and explicit error reporting. Add a typed SDK helper and discoverable action documentation.

Fixes #521
This commit is contained in:
DrSmoothl committed 2026-10-13 10:34:41 +08:00
1 parent c7428363cb
commit f85b28d23c
14 files changed
+587 -2

No files matched your search

@@ -0,0 +1,20 @@
import type { bool, pb, pb_optional, uint_64 } from '@snowluma/proton';
export interface GroupShareLinkRequest {
groupCode?: pb<1, uint_64>;
additionalParam?: pb_optional<3, string>;
needShortUrl?: pb_optional<4, bool>;
}
export interface OidbGroupShareLinkRequest {
type?: pb<1, uint_64>;
group?: pb<12, GroupShareLinkRequest>;
}
export interface GroupShareLinkResponse {
url?: pb<1, string>;
}
export interface OidbGroupShareLinkResponse {
group?: pb<12, GroupShareLinkResponse>;
}