mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 21:31:26 +00:00
test(telegram): stub menu sync in command harness
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user