Improve timeout resilience for Telegram and n8n integrations.

Add configurable Telethon retry/connect settings, enable retry-on-fail for external n8n nodes, and document recovery steps for Telegram and workflow activation timeouts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-24 00:46:26 +03:00
parent 1c5fad898e
commit 98b1469488
4 changed files with 112 additions and 10 deletions

View File

@@ -1,6 +1,12 @@
TG_API_ID=12345678
TG_API_HASH=your_telegram_api_hash
TG_GROUP_ID=-1001234567890
N8N_WEBHOOK_URL=http://n8n:5678/webhook/tg-inbox
N8N_WEBHOOK_URL=http://your-n8n-host:5678/webhook/tg-inbox
SESSION_FILE_PATH=/app/session/session.session
HISTORY_CHECK_FILE=/app/session/history_done.flag
TG_USE_IPV6=false
TG_CONNECT_TIMEOUT=20
TG_REQUEST_RETRIES=10
TG_CONNECTION_RETRIES=20
TG_RETRY_DELAY=5
TG_RECONNECT_WAIT=15