mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-25 16:12:13 +00:00
29 lines
1.1 KiB
TypeScript
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,
|
|
};
|