From 9642adaba73f75c8b809a623dbba25fe05c4a2ec Mon Sep 17 00:00:00 2001 From: xCyanGrizzly Date: Tue, 24 Mar 2026 16:01:41 +0100 Subject: [PATCH] feat: raise default ingestion size limit from 4GB to 200GB Multipart archives where individual parts fit under Telegram's 2GB limit but total size exceeds 4GB were being silently skipped. These can now be processed up to 200GB total, with each part uploading directly. Co-Authored-By: Claude Opus 4.6 (1M context) --- worker/src/util/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/src/util/config.ts b/worker/src/util/config.ts index 331a64f..665022e 100644 --- a/worker/src/util/config.ts +++ b/worker/src/util/config.ts @@ -3,7 +3,7 @@ export const config = { workerIntervalMinutes: parseInt(process.env.WORKER_INTERVAL_MINUTES ?? "60", 10), tempDir: process.env.WORKER_TEMP_DIR ?? "/tmp/zips", tdlibStateDir: process.env.TDLIB_STATE_DIR ?? "/data/tdlib", - maxZipSizeMB: parseInt(process.env.WORKER_MAX_ZIP_SIZE_MB ?? "4096", 10), + maxZipSizeMB: parseInt(process.env.WORKER_MAX_ZIP_SIZE_MB ?? "204800", 10), logLevel: (process.env.LOG_LEVEL ?? "info") as "debug" | "info" | "warn" | "error", telegramApiId: parseInt(process.env.TELEGRAM_API_ID ?? "0", 10), telegramApiHash: process.env.TELEGRAM_API_HASH ?? "",