Skip to main content

$getChat

This function retrieves information about a chat.

Parameters

ParameterDescription
chatIdAn optional chat ID for which information will be retrieved. Defaults to the ID of the received message's chat.
pathAn optional path to a specific property within the chat object.

Example

<AoiClient>.addCommand({
name: "getChatInfo",
code: `
$getChat[-100123456789;title] // Replace -100123456789 with the actual chat ID
`,
});