UNPKG

n8n

Version:

n8n Workflow Automation Tool

31 lines (30 loc) 1.43 kB
import { Logger } from '@n8n/backend-common'; import type { Thread } from 'chat'; import { UrlService } from '../../../../services/url.service'; import { AgentRepository } from '../../repositories/agent.repository'; import { AgentChatIntegration, type AgentChatIntegrationContext } from '../agent-chat-integration'; import type { SuspendComponent } from '../component-mapper'; export declare class TelegramIntegration extends AgentChatIntegration { private readonly logger; private readonly urlService; private readonly agentRepository; readonly type = "telegram"; readonly credentialTypes: string[]; readonly displayLabel = "Telegram"; readonly displayIcon = "telegram"; readonly supportedComponents: string[]; readonly needsShortCallbackData = true; readonly disableStreaming = true; readonly formatThreadId: { fromSdk: (thread: Thread<unknown, unknown>) => string; toSdk: (threadId: string) => string; }; constructor(logger: Logger, urlService: UrlService, agentRepository: AgentRepository); createAdapter(ctx: AgentChatIntegrationContext): Promise<unknown>; requiresLeader(): boolean; onBeforeConnect(ctx: AgentChatIntegrationContext): Promise<void>; onAfterConnect(ctx: AgentChatIntegrationContext): Promise<void>; normalizeComponents(components: SuspendComponent[]): SuspendComponent[]; private getMode; private extractBotToken; }