mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-20 06:01:34 +00:00
18 lines
584 B
TypeScript
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,
|
|
});
|
|
}
|