Skip to main content

$isChatValid

This function checks if the specified chat ID corresponds to a valid chat.

Parameters

ParameterDescription
chatIdThe ID of the chat to check for validity. If not provided, it defaults to the current chat ID.

Example

<AoiClient>.addCommand({
name: "checkChatValidity",
code: `
$isChatValid[$chatID] // Check the validity of the current chat
`,
});