File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ import {
1515 DEFAULT_ACCOUNT_ID ,
1616 resolveAgentIdFromSessionKey ,
1717 sanitizeAgentId ,
18- } from "../../../src/routing/session-key.js" ;
18+ } from "openclaw/plugin-sdk/routing" ;
19+ import { logVerbose } from "openclaw/plugin-sdk/runtime-env" ;
20+ import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime" ;
1921import {
2022 buildTelegramGroupPeerId ,
2123 buildTelegramParentPeer ,
@@ -63,10 +65,8 @@ export function resolveTelegramConversationRoute(params: {
6365 // Preserve the configured topic agent ID so topic-bound sessions stay stable
6466 // even when that agent is not present in the current config snapshot.
6567 const topicAgentId = sanitizeAgentId ( rawTopicAgentId ) ;
66- route = {
67- ...route ,
68- agentId : topicAgentId ,
69- sessionKey : buildAgentSessionKey ( {
68+ const sessionKey = normalizeLowercaseStringOrEmpty (
69+ buildAgentSessionKey ( {
7070 agentId : topicAgentId ,
7171 channel : "telegram" ,
7272 accountId : params . accountId ,
You can’t perform that action at this time.
0 commit comments