mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-30 18:53:32 +00:00
22 lines
637 B
TypeScript
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,
|
|
});
|
|
}
|