perf(telegram): skip non-forum topic cache setup · openclaw/openclaw@e80f67e
vincentkoc
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -161,15 +161,15 @@ export const buildTelegramMessageContext = async ({
|
161 | 161 | const resolvedThreadId = threadSpec.scope === "forum" ? threadSpec.id : undefined; |
162 | 162 | const replyThreadId = threadSpec.id; |
163 | 163 | const dmThreadId = threadSpec.scope === "dm" ? threadSpec.id : undefined; |
164 | | -const topicNameCachePath = resolveTopicNameCachePath( |
165 | | -await resolveTelegramMessageContextStorePath({ |
166 | | - cfg, |
167 | | -agentId: account.accountId, |
168 | | - sessionRuntime, |
169 | | -}), |
170 | | -); |
171 | 164 | let topicName: string | undefined; |
172 | 165 | if (isForum && resolvedThreadId != null) { |
| 166 | +const topicNameCachePath = resolveTopicNameCachePath( |
| 167 | +await resolveTelegramMessageContextStorePath({ |
| 168 | + cfg, |
| 169 | +agentId: account.accountId, |
| 170 | + sessionRuntime, |
| 171 | +}), |
| 172 | +); |
173 | 173 | const ftCreated = msg.forum_topic_created; |
174 | 174 | const ftEdited = msg.forum_topic_edited; |
175 | 175 | const ftClosed = msg.forum_topic_closed; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。