diff --git a/src/telegram/bot.media.test.ts b/src/telegram/bot.media.test.ts index 8fc16295f..3ccdd604f 100644 --- a/src/telegram/bot.media.test.ts +++ b/src/telegram/bot.media.test.ts @@ -10,11 +10,15 @@ const sendChatActionSpy = vi.fn(); type ApiStub = { config: { use: (arg: unknown) => void }; sendChatAction: typeof sendChatActionSpy; + setMyCommands: ( + commands: Array<{ command: string; description: string }>, + ) => Promise; }; const apiStub: ApiStub = { config: { use: useSpy }, sendChatAction: sendChatActionSpy, + setMyCommands: vi.fn(async () => undefined), }; beforeEach(() => { @@ -26,6 +30,7 @@ vi.mock("grammy", () => ({ api = apiStub; use = middlewareUseSpy; on = onSpy; + command = vi.fn(); stop = stopSpy; constructor(public token: string) {} },