create( groupName: string, participantsIds: string | Wid | (
string | Wid)
[], parentGroup: string | Wid,): Promise< { gid: Wid; participants: { [key: `${number}@c.us`]: { code: number; invite_code: null | string; invite_code_exp: null | number; wid: string; }; }; },> Parameters
- groupName: string
- participantsIds: string | Wid | (string | Wid)[]
- parentGroup: string | Wid
Returns Promise<
{
gid: Wid;
participants: {
[key: `${number}@c.us`]: {
code: number;
invite_code: null
| string;
invite_code_exp: null | number;
wid: string;
};
};
},
>
Create a new group
The method return a object with the result of each participant as the key