Files
openclaw/extensions/telegram/src/bot.ts
Josh Lehman 4c841ac575 refactor: remove Telegram session deps adapter (#96524)
* refactor: remove telegram session deps adapter

* test: update telegram session ratchet expectation
2026-06-24 11:37:19 -07: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,
});
}