Skip to content

Commit 0adb356

Browse files
committed
feat: Add support for custom fields in group creation
1 parent 0fda232 commit 0adb356

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/requests/messageRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export type FileUploadRequest = {
126126
export type CreateGroupRequest = DefaultAgentType & {
127127
allowDuplicates: boolean;
128128
appId?: string;
129+
customFields?: Record<string, string>;
129130
};
130131

131132
/**

src/solapi.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ export class SolapiMessageService {
261261
async createGroup(
262262
allowDuplicates?: boolean,
263263
appId?: string,
264+
customFields?: Record<string, string>,
264265
): Promise<GroupId> {
265266
allowDuplicates = allowDuplicates ?? false;
266267
const {sdkVersion, osPlatform} = defaultAgent;
@@ -276,6 +277,7 @@ export class SolapiMessageService {
276277
osPlatform,
277278
allowDuplicates,
278279
appId,
280+
customFields,
279281
},
280282
).then(res => res.groupId);
281283
}

0 commit comments

Comments
 (0)