fix(telegram): include AccountId in native command context for multi-agent routing
When running multiple Telegram bot accounts bound to different agents, the /new command (and other slash commands) would send confirmation messages via the wrong bot because the context was missing AccountId. The fix adds AccountId: route.accountId to the context payload in registerTelegramNativeCommands, matching how bot-message-context.ts handles regular messages. Fixes #2537
This commit is contained in:
parent
4ac7aa4a48
commit
ec969392fd
@ -468,6 +468,7 @@ export const registerTelegramNativeCommands = ({
|
|||||||
CommandAuthorized: commandAuthorized,
|
CommandAuthorized: commandAuthorized,
|
||||||
CommandSource: "native" as const,
|
CommandSource: "native" as const,
|
||||||
SessionKey: `telegram:slash:${senderId || chatId}`,
|
SessionKey: `telegram:slash:${senderId || chatId}`,
|
||||||
|
AccountId: route.accountId,
|
||||||
CommandTargetSessionKey: sessionKey,
|
CommandTargetSessionKey: sessionKey,
|
||||||
MessageThreadId: threadIdForSend,
|
MessageThreadId: threadIdForSend,
|
||||||
IsForum: isForum,
|
IsForum: isForum,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user