Skip to content

Commit ab07c81

Browse files
committed
fix(telegram): distill native metadata session key
1 parent 8762f9a commit ab07c81

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

extensions/telegram/src/bot-native-commands.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -992,13 +992,10 @@ export const registerTelegramNativeCommands = ({
992992
OriginatingChannel: "telegram" as const,
993993
OriginatingTo: originatingTo,
994994
});
995-
const sessionMetaKey =
996-
ctxPayload.CommandTargetSessionKey?.trim() || ctxPayload.SessionKey || route.sessionKey;
997-
998995
await nativeCommandRuntime.recordInboundSessionMetaSafe({
999996
cfg: executionCfg,
1000997
agentId: route.agentId,
1001-
sessionKey: sessionMetaKey,
998+
sessionKey: commandTargetSessionKey,
1002999
ctx: ctxPayload,
10031000
onError: (err) =>
10041001
runtime.error?.(danger(`telegram slash: failed updating session meta: ${String(err)}`)),

0 commit comments

Comments
 (0)