mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 15:40:21 +00:00
feat(telegram): auto-rename DM topics on first message (#51502)
* feat(telegram): auto-rename DM topics on first message fix(telegram): use bot.api for topic rename to avoid SecretRef resolution * fix(telegram): address security + test review feedback - Fix test assertion: DEFAULT_PROMPT_SUBSTRING matches 'very short' - Use RawBody instead of Body (no envelope metadata to LLM) - Truncate user message to 500 chars for LLM prompt - Remove user-derived content from verbose logs - Remove redundant threadSpec.id null check - Fix AutoTopicLabelParams type to match generateTopicLabel * fix(telegram): use effective dm auto-topic config * fix(telegram): detect direct auto-topic overrides * fix: auto-rename Telegram DM topics on first message (#51502) (thanks @Lukavyi) --------- Co-authored-by: Ayaan Zaidi <hi@obviy.us>
This commit is contained in:
@@ -47,3 +47,8 @@ export type {
|
||||
export { createReplyReferencePlanner } from "../auto-reply/reply/reply-reference.js";
|
||||
export type { GetReplyOptions, ReplyPayload } from "../auto-reply/types.js";
|
||||
export type { FinalizedMsgContext, MsgContext } from "../auto-reply/templating.js";
|
||||
export {
|
||||
resolveAutoTopicLabelConfig,
|
||||
generateTopicLabel,
|
||||
} from "../auto-reply/reply/auto-topic-label.js";
|
||||
export type { AutoTopicLabelParams } from "../auto-reply/reply/auto-topic-label.js";
|
||||
|
||||
Reference in New Issue
Block a user