openclaw/src/plugins/runtime/runtime-whatsapp-outbound.runtime.ts

16 lines
488 B
TypeScript
Raw Normal View History

2026-03-16 23:23:54 -07:00
import {
sendMessageWhatsApp as sendMessageWhatsAppImpl,
sendPollWhatsApp as sendPollWhatsAppImpl,
} from "./runtime-whatsapp-boundary.js";
2026-03-17 00:00:05 -07:00
import type { PluginRuntime } from "./types.js";
2026-03-16 23:23:54 -07:00
2026-03-17 00:00:05 -07:00
type RuntimeWhatsAppOutbound = Pick<
PluginRuntime["channel"]["whatsapp"],
"sendMessageWhatsApp" | "sendPollWhatsApp"
>;
2026-03-16 23:23:54 -07:00
2026-03-17 00:00:05 -07:00
export const runtimeWhatsAppOutbound = {
sendMessageWhatsApp: sendMessageWhatsAppImpl,
sendPollWhatsApp: sendPollWhatsAppImpl,
} satisfies RuntimeWhatsAppOutbound;