Methods

addChatToCommunity

Add a chat to a community. USER-ONLY

Parameters

communityId: number

The identifier of the community.

chatId: ID

The identifier of the chat to add.

isHidden?: boolean

Whether the chat should be hidden inside the community.

Result

void

Syntax

// Required parameters only.
await client.addChatToCommunity(communityId, chatId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.addChatToCommunity(communityId, chatId, { isHidden });