createCommunity
Create a community. USER-ONLY
Parameters
name: string
The name of the community.
The identifier of a chat to add to the community.
description?: string
The description of the community.
isHidden?: boolean
Whether the chat should be hidden inside the community.
Result
Syntax
// Required parameters only.
await client.createCommunity(name, chatId);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.createCommunity(name, chatId, { description, isHidden });