Skip to content

Commit bbde415

Browse files
committed
fix: restore telegram route file after rebase conflict
1 parent 077e6f6 commit bbde415

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

extensions/telegram/src/conversation-route.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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";
1921
import {
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,

0 commit comments

Comments
 (0)