Files
openclaw/extensions/telegram/src/channel.setup.ts
Peter Steinberger 3cf806d172 fix(telegram): cache outbound replies for context
Co-authored-by: Keshav's Bot <keshavbotagent@gmail.com>
2026-05-24 00:04:16 +01:00

18 lines
744 B
TypeScript

import type { ChannelPlugin } from "openclaw/plugin-sdk/channel-core";
import { type ResolvedTelegramAccount } from "./accounts.js";
import type { TelegramProbe } from "./probe.js";
import { telegramSetupAdapter } from "./setup-core.js";
import { telegramSetupWizard } from "./setup-surface.js";
import { createTelegramPluginBase } from "./shared.js";
import { detectTelegramLegacyStateMigrations } from "./state-migrations.js";
export const telegramSetupPlugin: ChannelPlugin<ResolvedTelegramAccount, TelegramProbe> = {
...createTelegramPluginBase({
setupWizard: telegramSetupWizard,
setup: telegramSetupAdapter,
}),
lifecycle: {
detectLegacyStateMigrations: (params) => detectTelegramLegacyStateMigrations(params),
},
};