createGroup

Create a group. USER-ONLY

Parameters

title: string

The title of the group.

users?: ID[]

Users to invite after creating the group.

messageTtl?: number

The time to live, in seconds, for messages in the group to be created.

Result

The created group.

Syntax

// Required parameters only.
await client.createGroup(title);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.createGroup(title, { users, messageTtl });