Files
openclaw/extensions/telegram/src/bot.ts
2026-06-04 22:03:15 -04:00

22 lines
637 B
TypeScript

// Telegram plugin module implements bot behavior.
import {
createTelegramBotCore,
getTelegramSequentialKey,
setTelegramBotRuntimeForTest,
} from "./bot-core.js";
import { defaultTelegramBotDeps } from "./bot-deps.js";
import type { TelegramBotOptions } from "./bot.types.js";
export type { TelegramBotOptions } from "./bot.types.js";
export { getTelegramSequentialKey, setTelegramBotRuntimeForTest };
export function createTelegramBot(
opts: TelegramBotOptions,
): ReturnType<typeof createTelegramBotCore> {
return createTelegramBotCore({
...opts,
telegramDeps: opts.telegramDeps ?? defaultTelegramBotDeps,
});
}