endSecretChat

End a secret chat. USER-ONLY

Parameters

id: number

The identifier of the secret chat.

isHistoryDeleted?: boolean

Whether to delete the history of the secret chat.

Result

Syntax

// Required parameters only.
await client.endSecretChat(id);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.endSecretChat(id, { isHistoryDeleted });