Download extensions/telegram/src/runtime.ts from quinnz/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/spaces/quinnz/openclaw/resolve/main/extensions/telegram/src/runtime.ts
- Command line
-
hf download hf://spaces/quinnz/openclaw/extensions/telegram/src/runtime.ts
-
curl -L -o runtime.ts https://huggingface.co/spaces/quinnz/openclaw/resolve/main/extensions/telegram/src/runtime.ts
334 Bytes
| import type { PluginRuntime } from "openclaw/plugin-sdk"; | |
| let runtime: PluginRuntime | null = null; | |
| export function setTelegramRuntime(next: PluginRuntime) { | |
| runtime = next; | |
| } | |
| export function getTelegramRuntime(): PluginRuntime { | |
| if (!runtime) { | |
| throw new Error("Telegram runtime not initialized"); | |
| } | |
| return runtime; | |
| } | |