mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-08 13:23:53 +00:00
19 lines
805 B
TypeScript
19 lines
805 B
TypeScript
// Telegram plugin module implements channel.setup behavior.
|
|
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),
|
|
},
|
|
};
|