mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:58:26 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { type RunOptions, run } from "@grammyjs/runner";
|
||||
import type { MoltbotConfig } from "../config/config.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import { resolveAgentMaxConcurrent } from "../config/agent-limits.js";
|
||||
import { computeBackoff, sleepWithAbort } from "../infra/backoff.js";
|
||||
@@ -17,7 +17,7 @@ import { startTelegramWebhook } from "./webhook.js";
|
||||
export type MonitorTelegramOpts = {
|
||||
token?: string;
|
||||
accountId?: string;
|
||||
config?: MoltbotConfig;
|
||||
config?: OpenClawConfig;
|
||||
runtime?: RuntimeEnv;
|
||||
abortSignal?: AbortSignal;
|
||||
useWebhook?: boolean;
|
||||
@@ -28,7 +28,7 @@ export type MonitorTelegramOpts = {
|
||||
webhookUrl?: string;
|
||||
};
|
||||
|
||||
export function createTelegramRunnerOptions(cfg: MoltbotConfig): RunOptions<unknown> {
|
||||
export function createTelegramRunnerOptions(cfg: OpenClawConfig): RunOptions<unknown> {
|
||||
return {
|
||||
sink: {
|
||||
concurrency: resolveAgentMaxConcurrent(cfg),
|
||||
|
||||
Reference in New Issue
Block a user