mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 04:50:42 +00:00
13 lines
453 B
TypeScript
13 lines
453 B
TypeScript
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
import type { TelegramRuntime } from "./runtime.types.js";
|
|
|
|
const {
|
|
setRuntime: setTelegramRuntime,
|
|
clearRuntime: clearTelegramRuntime,
|
|
getRuntime: getTelegramRuntime,
|
|
} = createPluginRuntimeStore<TelegramRuntime>({
|
|
pluginId: "telegram",
|
|
errorMessage: "Telegram runtime not initialized",
|
|
});
|
|
export { clearTelegramRuntime, getTelegramRuntime, setTelegramRuntime };
|