]> git.giacomolli.uk - onechat/commit
Receive images in WhatsApp batches master
authorAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 17:14:06 +0000 (14:14 -0300)
committerAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 17:14:06 +0000 (14:14 -0300)
commit0da50dc187c8b4aa23ac1ddd0418c0da779389d9
tree43782560846531831f5f02bea5cbe55be07cdf89
parentd28e3b2858db322899a81b59a30400c1acad2b42
Receive images in WhatsApp batches

WhatsApp stores supported images before it acknowledges their messages,
so a stop cannot lose them. A download has its own limit of two minutes,
apart from the ten seconds of the name lookups. Batch text keeps the
image markers and captions on their own lines, so the agent and a routed
child can read the pixels. Failed images and other visual media keep
short text markers instead of stopping the batch. View-once messages
stay unread.

A failed download logs only a short chat hash and a safe cause, such as
an HTTP status, because the library error text can hold signed media
URLs. Tests use made-up images and a fake download client to check
storage, the limits, the markers, routed delivery, and restarts.

Issue: 441b3c7
README.rst
whatsapp.go
whatsapp_batch.go
whatsapp_fake_helper_test.go
whatsapp_image.go [new file with mode: 0644]
whatsapp_image_test.go [new file with mode: 0644]
whatsapp_inbox.go
whatsapp_inbox_test.go
whatsapp_route_test.go