mirror of https://github.com/openclaw/openclaw.git
test(telegram): stub menu sync in command harness
This commit is contained in:
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…
Reference in New Issue