createSupergroup

Create a supergroup. User-only.

Parameters

title: string

The title of the supergroup.

description?: string

The description of the supergroup that is to be created.

forum?: boolean

Whether a forum should be created.

messageTtl?: number

Time to live of the messages of the supergroup that is to be created in seconds.

Result

The created supergroup.

Syntax

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

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