mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 08:58:35 +00:00
14 lines
526 B
TypeScript
14 lines
526 B
TypeScript
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
import type { TelegramRuntime } from "./runtime.types.js";
|
|
|
|
const {
|
|
setRuntime: setTelegramRuntime,
|
|
clearRuntime: clearTelegramRuntime,
|
|
getRuntime: getTelegramRuntime,
|
|
tryGetRuntime: getOptionalTelegramRuntime,
|
|
} = createPluginRuntimeStore<TelegramRuntime>({
|
|
pluginId: "telegram",
|
|
errorMessage: "Telegram runtime not initialized",
|
|
});
|
|
export { clearTelegramRuntime, getOptionalTelegramRuntime, getTelegramRuntime, setTelegramRuntime };
|