- createGroup(
groupName: string,
participants: Wid[],
ephemeral?: number,
parentGroup?: Wid,
): Promise<
{
participants: {
error: string;
invite_code: string
| null;
invite_code_exp: string | null;
wid: Wid;
}[];
wid: Wid;
},
> Parameters
- groupName: string
- participants: Wid[]
Optional
ephemeral: numberOptional
parentGroup: Wid
Returns Promise<
{
participants: {
error: string;
invite_code: string
| null;
invite_code_exp: string | null;
wid: Wid;
}[];
wid: Wid;
},
>
- createGroup(
options: {
announce: boolean;
ephemeralDuration: number;
memberAddMode: boolean;
membershipApprovalMode: boolean;
parentGroupId?: Wid;
restrict: boolean;
title: string;
},
participants: Wid[],
): Promise<
{
participants: {
error: string;
invite_code: string
| null;
invite_code_exp: string | null;
wid: Wid;
}[];
wid: Wid;
},
> Parameters
- options: {
announce: boolean;
ephemeralDuration: number;
memberAddMode: boolean;
membershipApprovalMode: boolean;
parentGroupId?: Wid;
restrict: boolean;
title: string;
} - participants: Wid[]
Returns Promise<
{
participants: {
error: string;
invite_code: string
| null;
invite_code_exp: string | null;
wid: Wid;
}[];
wid: Wid;
},
>
Whatsapp
247355