mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
fix(telegram): distill native metadata session key
This commit is contained in:
@@ -992,13 +992,10 @@ export const registerTelegramNativeCommands = ({
|
||||
OriginatingChannel: "telegram" as const,
|
||||
OriginatingTo: originatingTo,
|
||||
});
|
||||
const sessionMetaKey =
|
||||
ctxPayload.CommandTargetSessionKey?.trim() || ctxPayload.SessionKey || route.sessionKey;
|
||||
|
||||
await nativeCommandRuntime.recordInboundSessionMetaSafe({
|
||||
cfg: executionCfg,
|
||||
agentId: route.agentId,
|
||||
sessionKey: sessionMetaKey,
|
||||
sessionKey: commandTargetSessionKey,
|
||||
ctx: ctxPayload,
|
||||
onError: (err) =>
|
||||
runtime.error?.(danger(`telegram slash: failed updating session meta: ${String(err)}`)),
|
||||
|
||||
Reference in New Issue
Block a user