test(telegram): stub menu sync in command harness

feature/PAZ-358-fe-credit-error-display
Vincent Koc 8 months ago
parent 2df86cce1c
commit 91115cdf61

@ -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({

Loading…
Cancel
Save