mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
Merged via squash.
Prepared head SHA: 8bd7d6c13b
Co-authored-by: hmemcpy <601206+hmemcpy@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
import type { PluginRuntime } from "openclaw/plugin-sdk/core";
|
|
|
|
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;
|
|
}
|