import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; import {
resolveReactionLevel,
type ReactionLevel,
type ResolvedReactionLevel,
} from "openclaw/plugin-sdk/text-runtime"; import { resolveMergedWhatsAppAccountConfig } from "./account-config.js";
export type WhatsAppReactionLevel = ReactionLevel;
export type ResolvedWhatsAppReactionLevel = ResolvedReactionLevel;
/** Resolve the effective reaction level and its implications for WhatsApp. */
export function resolveWhatsAppReactionLevel(params: {
cfg: OpenClawConfig;
accountId?: string;
}): ResolvedWhatsAppReactionLevel { const account = resolveMergedWhatsAppAccountConfig({
cfg: params.cfg,
accountId: params.accountId,
}); return resolveReactionLevel({
value: account.reactionLevel,
defaultLevel: "minimal",
invalidFallback: "minimal",
});
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-05-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.