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