fix(telegram): move unchanged command-sync log to verbose

This commit is contained in:
Peter Steinberger
2026-03-03 03:05:25 +00:00
parent f7f0caa5c7
commit 805de8537c
2 changed files with 2 additions and 7 deletions

View File

@@ -179,10 +179,6 @@ describe("bot-native-command-menu", () => {
botIdentity: "bot-a",
});
await vi.waitFor(() => {
expect(runtimeLog).toHaveBeenCalledWith("telegram: command menu unchanged; skipping sync");
});
// setMyCommands should NOT have been called a second time.
expect(setMyCommands).toHaveBeenCalledTimes(1);
});
@@ -213,7 +209,6 @@ describe("bot-native-command-menu", () => {
botIdentity: "token-bot-b",
});
await vi.waitFor(() => expect(setMyCommands).toHaveBeenCalledTimes(2));
expect(runtimeLog).not.toHaveBeenCalledWith("telegram: command menu unchanged; skipping sync");
});
it("does not cache empty-menu hash when deleteMyCommands fails", async () => {
@@ -244,7 +239,6 @@ describe("bot-native-command-menu", () => {
botIdentity: "bot-a",
});
await vi.waitFor(() => expect(deleteMyCommands).toHaveBeenCalledTimes(2));
expect(runtimeLog).not.toHaveBeenCalledWith("telegram: command menu unchanged; skipping sync");
});
it("retries with fewer commands on BOT_COMMANDS_TOO_MUCH", async () => {