setPersonalChannel

Set the personal channel of the current user. User-only.

Parameters

chatId?: ID

New personal channel. If not set, personal channel will be removed.

Result

void

Syntax

// Optional parameters.
// Any of the optional parameters can be omitted.
await client.setPersonalChannel( { chatId });