Skip to main content

$chatSendMessage

This function sends a message to a specified chat.

Parameters

ParameterDescription
chatIdThe ID of the chat to which the message will be sent.
contentThe content of the message to be sent.

Example

<AoiClient>.addCommand({
name: "sendMessageToChat",
code: `
$chatSendMessage[-100123456789;Hello, this is a test message] // Replace -100123456789 with the actual chat ID
`,
});