fix(telegram): scope command-sync hash cache by bot identity (#32059)

This commit is contained in:
Peter Steinberger
2026-03-02 19:24:16 +00:00
parent 10fb632c9e
commit d486b0a925
3 changed files with 77 additions and 16 deletions

View File

@@ -397,7 +397,13 @@ export const registerTelegramNativeCommands = ({
}
// Telegram only limits the setMyCommands payload (menu entries).
// Keep hidden commands callable by registering handlers for the full catalog.
syncTelegramMenuCommands({ bot, runtime, commandsToRegister, accountId });
syncTelegramMenuCommands({
bot,
runtime,
commandsToRegister,
accountId,
botIdentity: opts.token,
});
const resolveCommandRuntimeContext = (params: {
msg: NonNullable<TelegramNativeCommandContext["message"]>;