Resolves the optional apiProxy injection, keeps HTML as the compatibility default, synchronizes generated entrypoints, and adds a regression test.
23 lines
864 B
TypeScript
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';
|