import { Bot } from "grammy"; import type { BotConfig, ReplyToMode } from "../config/config.js"; import { type RuntimeEnv } from "../runtime.js"; import { getTelegramSequentialKey } from "./sequential-key.js"; export type TelegramBotOptions = { token: string; accountId?: string; runtime?: RuntimeEnv; requireMention?: boolean; allowFrom?: Array; groupAllowFrom?: Array; mediaMaxMb?: number; replyToMode?: ReplyToMode; proxyFetch?: typeof fetch; config?: BotConfig; updateOffset?: { lastUpdateId?: number | null; onUpdateId?: (updateId: number) => void | Promise; }; testTimings?: { mediaGroupFlushMs?: number; textFragmentGapMs?: number; }; }; export { getTelegramSequentialKey }; export declare function createTelegramBot(opts: TelegramBotOptions): Bot>;