Files
openclaw/extensions/telegram/src/send-runtime.ts
2026-06-21 09:12:41 +08:00

10 lines
371 B
TypeScript

// Telegram plugin module owns the lazy send runtime import.
export type TelegramSendModule = typeof import("./send.js");
let telegramSendModulePromise: Promise<TelegramSendModule> | undefined;
export async function loadTelegramSendModule(): Promise<TelegramSendModule> {
telegramSendModulePromise ??= import("./send.js");
return await telegramSendModulePromise;
}