test(telegram): stub menu sync in command harness

This commit is contained in:
Vincent Koc 2026-03-31 22:31:12 +09:00
parent 2df86cce1c
commit 91115cdf61
1 changed files with 6 additions and 0 deletions

View File

@ -115,6 +115,12 @@ export function createNativeCommandTestParams(
modelNames: new Map<string, string>(),
})) as TelegramBotDeps["buildModelsProviderData"],
listSkillCommandsForAgents,
syncTelegramMenuCommands: vi.fn(({ bot, commandsToRegister }) => {
if (commandsToRegister.length === 0) {
return undefined;
}
return bot.api.setMyCommands(commandsToRegister);
}) as TelegramBotDeps["syncTelegramMenuCommands"],
wasSentByBot: vi.fn(() => false) as TelegramBotDeps["wasSentByBot"],
};
return createBaseNativeCommandTestParams({