Files
dsh-telegram-channel/lib/index.d.ts
T
徐跃恒andGitHub 72e1d399a7 fix: make apiProxy injection optional
Resolves the optional apiProxy injection, keeps HTML as the compatibility default, synchronizes generated entrypoints, and adds a regression test.
2026-09-15 21:36:14 +08:00

23 lines
864 B
TypeScript

import type { Context } from '@deepseek-ai/cordis';
import Schema from '@deepseek-ai/schemastery';
export declare const name = "dsh-telegram-channel";
/** agents: followup; apiProxy is optional and resolved at runtime via ctx.get;
* when absent, catalog helpers degrade to the live-agents view. */
export declare const inject: string[];
export interface TelegramChannelConfig {
token?: string;
allowedUserIds?: number[];
allowAllUsers?: boolean;
maxMessageLength?: number;
pollingTimeoutSec?: number;
rendering?: string;
}
export declare const Config: Schema<TelegramChannelConfig>;
export declare function apply(ctx: Context, config: TelegramChannelConfig): void;
export * from './format.js';
export * from './client.js';
export * from './auth.js';
export * from './commands.js';
export * from './label.js';
export * from './bridge.js';