openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
29 lines • 1.19 kB
TypeScript
import { i as OpenClawConfig } from "./types.openclaw-DABkiMzt.js";
//#region src/plugin-sdk/telegram-account.d.ts
/**
* @deprecated Compatibility type for the `openclaw/plugin-sdk/telegram-account` facade.
* New channel plugins should prefer injected runtime helpers and generic SDK subpaths.
*/
type TelegramAccountConfig = NonNullable<NonNullable<OpenClawConfig["channels"]>["telegram"]>;
/**
* @deprecated Compatibility type for the `openclaw/plugin-sdk/telegram-account` facade.
* New channel plugins should prefer injected runtime helpers and generic SDK subpaths.
*/
type ResolvedTelegramAccount = {
accountId: string;
enabled: boolean;
name?: string;
token: string;
tokenSource: "env" | "tokenFile" | "config" | "none";
config: TelegramAccountConfig;
};
/**
* @deprecated Compatibility facade for plugin code that needs Telegram account resolution.
* New channel plugins should prefer injected runtime helpers and generic SDK subpaths.
*/
declare function resolveTelegramAccount(params: {
cfg: OpenClawConfig;
accountId?: string | null;
}): ResolvedTelegramAccount;
//#endregion
export { ResolvedTelegramAccount, TelegramAccountConfig, resolveTelegramAccount };