refactor: route channel runtime via plugin api

This commit is contained in:
Peter Steinberger committed 2026-01-18 11:01:16 +00:00
1 parent 676d41d415
commit ee6e534ccb
82 files changed
+1253 -3167

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import type { PluginRuntime } from "clawdbot/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;
}