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

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

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

Example output:

const response = "some string";

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

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

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

Example output:

const response = "some string";