openclaw/extensions/telegram/runtime-api.ts
2026-03-18 02:29:54 -05:00

63 lines
2.1 KiB
TypeScript

export type {
ChannelPlugin,
OpenClawConfig,
TelegramActionConfig,
} from "../../src/plugin-sdk/telegram-core.js";
export type { ChannelMessageActionAdapter } from "../../src/channels/plugins/types.js";
export type { TelegramAccountConfig, TelegramNetworkConfig } from "../../src/config/types.js";
export type {
OpenClawPluginApi,
OpenClawPluginService,
OpenClawPluginServiceContext,
PluginLogger,
} from "../../src/plugins/types.js";
export type {
AcpRuntime,
AcpRuntimeCapabilities,
AcpRuntimeDoctorReport,
AcpRuntimeEnsureInput,
AcpRuntimeEvent,
AcpRuntimeHandle,
AcpRuntimeStatus,
AcpRuntimeTurnInput,
AcpSessionUpdateTag,
} from "../../src/acp/runtime/types.js";
export type { AcpRuntimeErrorCode } from "../../src/acp/runtime/errors.js";
export { AcpRuntimeError } from "../../src/acp/runtime/errors.js";
export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "../../src/routing/session-key.js";
export {
buildChannelConfigSchema,
getChatChannelMeta,
jsonResult,
readNumberParam,
readReactionParams,
readStringArrayParam,
readStringOrNumberParam,
readStringParam,
resolvePollMaxSelections,
TelegramConfigSchema,
} from "../../src/plugin-sdk/telegram-core.js";
export { parseTelegramTopicConversation } from "../../src/acp/conversation-id.js";
export { clearAccountEntryFields } from "../../src/channels/plugins/config-helpers.js";
export { buildTokenChannelStatusSummary } from "../../src/plugin-sdk/status-helpers.js";
export {
projectCredentialSnapshotFields,
resolveConfiguredFromCredentialStatuses,
} from "../../src/channels/account-snapshot-fields.js";
export { resolveTelegramPollVisibility } from "../../src/poll-params.js";
export { PAIRING_APPROVED_MESSAGE } from "../../src/channels/plugins/pairing-message.js";
export type { TelegramProbe } from "./src/probe.js";
export {
createForumTopicTelegram,
deleteMessageTelegram,
editForumTopicTelegram,
editMessageTelegram,
reactMessageTelegram,
sendMessageTelegram,
sendPollTelegram,
sendStickerTelegram,
} from "./src/send.js";
export { resolveTelegramToken } from "./src/token.js";
export { telegramMessageActions } from "./src/channel-actions.js";