Files
openclaw/extensions/telegram/src/bot-deps.ts
2026-03-18 10:12:15 +05:30

29 lines
1.1 KiB
TypeScript

import { loadConfig, resolveStorePath } from "openclaw/plugin-sdk/config-runtime";
import { readChannelAllowFromStore } from "openclaw/plugin-sdk/conversation-runtime";
import { enqueueSystemEvent } from "openclaw/plugin-sdk/infra-runtime";
import {
dispatchReplyWithBufferedBlockDispatcher,
listSkillCommandsForAgents,
} from "openclaw/plugin-sdk/reply-runtime";
import { wasSentByBot } from "./sent-message-cache.js";
export type TelegramBotDeps = {
loadConfig: typeof loadConfig;
resolveStorePath: typeof resolveStorePath;
readChannelAllowFromStore: typeof readChannelAllowFromStore;
enqueueSystemEvent: typeof enqueueSystemEvent;
dispatchReplyWithBufferedBlockDispatcher: typeof dispatchReplyWithBufferedBlockDispatcher;
listSkillCommandsForAgents: typeof listSkillCommandsForAgents;
wasSentByBot: typeof wasSentByBot;
};
export const defaultTelegramBotDeps: TelegramBotDeps = {
loadConfig,
resolveStorePath,
readChannelAllowFromStore,
enqueueSystemEvent,
dispatchReplyWithBufferedBlockDispatcher,
listSkillCommandsForAgents,
wasSentByBot,
};