mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 23:50:44 +00:00
19 lines
762 B
TypeScript
19 lines
762 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: ({ cfg, env }) =>
|
|
detectTelegramLegacyStateMigrations({ cfg, env }),
|
|
},
|
|
};
|