Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { normalizeOptionalString } from "../../shared/string-coerce.js";
const STANDARD_MESSAGE_ACTION_PARAM_KEYS = new Set([
"accountId",
"asDocument",
"base64",
"bestEffort",
"caption",
"channel",
"channelId",
"contentType",
"delivery",
"dryRun",
"filePath",
"fileUrl",
"filename",
"forceDocument",
"gifPlayback",
"image",
"interactive",
"media",
"mediaUrl",
"message",
"mimeType",
"path",
"pollAnonymous",
"pollDurationHours",
"pollMulti",
"pollOption",
"pollPublic",
"pollQuestion",
"pin",
"presentation",
"replyTo",
"silent",
"target",
"targets",
"text",
"threadId",
"to",
]);
export function hasPotentialPluginActionParam(params: Record<string, unknown>): boolean {
return Object.entries(params).some(([key, value]) => {
if (STANDARD_MESSAGE_ACTION_PARAM_KEYS.has(key)) {
return false;
}
if (typeof value === "string") {
return Boolean(normalizeOptionalString(value));
}
if (typeof value === "number") {
return Number.isFinite(value);
}
return value !== undefined;
});
}
¤ Dauer der Verarbeitung: 0.19 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland