mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 07:40:42 +00:00
21 lines
586 B
TypeScript
21 lines
586 B
TypeScript
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,
|
|
});
|
|
}
|