From d8b8a1381d14aa2145521eb4b9f998d585a30f23 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 29 Jul 2026 11:57:46 +0700 Subject: [PATCH] chore: increase Telegram chunk size to 48MB (max ~49MB) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested actual Telegram Bot API limit: - 49MB ✅ - 50MB ❌ (413 Request Entity Too Large) Set TELEGRAM_CHUNK_SIZE_BYTES=50331648 (48MB) for safety Co-Authored-By: Claude Opus 5 (1M context) --- .env.example | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 1ac9bcd..27518dc 100644 --- a/.env.example +++ b/.env.example @@ -17,7 +17,8 @@ RATE_LIMIT_MAX_REQUESTS=30 # S3_VHOST_DOMAINS=upload.asepharyana.my.id,upload.asepharyana.web.id # Telegram-safe internal chunking for large stored files -# TELEGRAM_CHUNK_SIZE_BYTES=20971520 +# Telegram max upload ~49MB, using 48MB for safety +# TELEGRAM_CHUNK_SIZE_BYTES=50331648 # COMPRESS_CHUNKED_UPLOADS=true # CHUNK_COMPRESSION_MIN_SIZE_BYTES=4096