reportChat

Report a chat. USER-ONLY

Parameters

chatId: ID

The identifier of a chat to report.

reason: ReportReason

The reason of the report.

text?: string

The text of the report.

Result

void

Syntax

// Required parameters only.
await client.reportChat(chatId, reason);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.reportChat(chatId, reason, { text });