feat(sdk): expose group announcement controls

Add typed client options for pinned, popup, new-member, edit-card, and confirmation behavior. Return typed notice metadata and cover the HTTP parameter mapping.
This commit is contained in:
DrSmoothl committed 2026-07-14 03:39:41 +08:00
1 parent 5885187e7d
commit 9e60de32fe
5 files changed
+71 -8

No files matched your search

+10 -3
View File
@@ -326,9 +326,13 @@ export abstract class SnowLumaApiClient {
sendGroupNotice(groupId: number, content: string, options: RequestOptions & {
image?: string;
pinned?: number;
type?: number;
confirmRequired?: number;
pinned?: 0 | 1;
type?: 1 | 20;
sendToNewMembers?: boolean;
isShowEditCard?: 0 | 1;
/** QQ's raw inverted field: 0=show popup, 1=do not show popup. */
tipWindowType?: 0 | 1;
confirmRequired?: 0 | 1;
} = {}) {
return this.call('_send_group_notice', {
group_id: groupId,
@@ -336,6 +340,9 @@ export abstract class SnowLumaApiClient {
image: options.image,
pinned: options.pinned,
type: options.type,
send_to_new_members: options.sendToNewMembers,
is_show_edit_card: options.isShowEditCard,
tip_window_type: options.tipWindowType,
confirm_required: options.confirmRequired,
}, options);
}