Telegram sends each document as a separate message (no media_group_id). This change introduces a configurable time window (documentBatchWindowMs, default 1500ms) that collects consecutive document messages from the same sender in the same chat/thread and dispatches them as a single processMessage call, mirroring the existing media-group batching behavior.