Files
openclaw/extensions/telegram/src/auto-topic-label.ts
2026-06-04 22:03:15 -04:00

18 lines
584 B
TypeScript

// Telegram plugin module implements auto topic label behavior.
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
import { generateConversationLabel } from "openclaw/plugin-sdk/reply-dispatch-runtime";
export { resolveAutoTopicLabelConfig } from "./auto-topic-label-config.js";
export async function generateTelegramTopicLabel(params: {
userMessage: string;
prompt: string;
cfg: OpenClawConfig;
agentId?: string;
agentDir?: string;
}): Promise<string | null> {
return await generateConversationLabel({
...params,
maxLength: 128,
});
}