This operation is only available on the server.
import { whopApi } from "@/lib/whop-api";

const result = await whopApi.sendMessageToChat({
	experienceId: "exp_XXXXXXXX" /* Required! */,

	message: "some string" /* Required! */,
});

Example output:

const response = {
	// Sends a message to a user
	sendMessage: "some string",
};