startVideoChat

Start a video chat. User-only.

Parameters

chatId: ID

The chat to start the video chat in.

title?: string

The video chat’s title.

liveStream?: boolean

Whether this is going to be a live stream.

Result

The started video chat.

Syntax

// Required parameters only.
await client.startVideoChat(chatId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.startVideoChat(chatId, { title, liveStream });