UNPKG

n8n

Version:

n8n Workflow Automation Tool

32 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createTelegramBridgeExecutionContext = createTelegramBridgeExecutionContext; exports.createTelegramResumeExecutionContext = createTelegramResumeExecutionContext; exports.startTelegramTypingIndicator = startTelegramTypingIndicator; const typing_indicator_1 = require("./typing-indicator"); const TELEGRAM_TYPING_REFRESH_MS = 4000; function createTelegramBridgeExecutionContext(params) { return { platformAgentContext: {}, statusHandle: startTelegramTypingIndicator(params.thread, { logger: params.logger, agentId: params.agentId, }), }; } function createTelegramResumeExecutionContext(params) { return { statusHandle: startTelegramTypingIndicator(params.thread, { logger: params.logger, agentId: params.agentId, }), }; } function startTelegramTypingIndicator(thread, options) { return (0, typing_indicator_1.startTypingIndicator)(thread, { ...options, platform: 'Telegram', refreshMs: TELEGRAM_TYPING_REFRESH_MS, }); } //# sourceMappingURL=telegram-bridge-behavior.js.map