diff --git a/extensions/telegram/src/bot-message-context.reactions.test.ts b/extensions/telegram/src/bot-message-context.reactions.test.ts index 2ba426cb6cf..3c24317afdd 100644 --- a/extensions/telegram/src/bot-message-context.reactions.test.ts +++ b/extensions/telegram/src/bot-message-context.reactions.test.ts @@ -1,8 +1,20 @@ import { beforeEach, describe, expect, it, vi } from "vitest"; import type { BuildTelegramMessageContextParams } from "./bot-message-context.types.js"; +type InboundBodyMock = (arg: unknown) => Promise<{ + bodyText: string; + rawBody: string; + historyKey: undefined; + commandAuthorized: boolean; + effectiveWasMentioned: boolean; + canDetectMention: boolean; + shouldBypassMention: boolean; + stickerCacheHit: boolean; + locationData: undefined; +}>; + const inboundBodyMock = vi.hoisted(() => - vi.fn(async () => ({ + vi.fn(async () => ({ bodyText: "hello", rawBody: "hello", historyKey: undefined,