]> git.giacomolli.uk - onechat/commit
Import WhatsApp exports before live messages
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Mon, 9 Nov 2026 20:29:48 +0000 (17:29 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Mon, 9 Nov 2026 20:34:43 +0000 (17:34 -0300)
commit900ec0e7dad7a913190fcef9016e53495de9bdf8
tree0ded86291a1dbd6f1b236a3951a2ff49f8f45430
parenta606686934b4028c29dca8e9dae6b2e188cee9c5
Import WhatsApp exports before live messages

"onechat import [-n] ZIP..." reads the chat exports of the phone, makes
one marked WhatsApp batch for each chat and day, and rebuilds the memory
with them in date order. It takes only messages from before the first
live batch, maps the owner's profile name to "You", and skips the chat
days that an earlier import added. With -n it prints the plan and the
estimated calls and makes no model call.

The names, the chat IDs, and the owner come from the WhatsApp session
through the library's store, so the import runs only while the daemon is
stopped and needs no network.

Issue: b0b8bf9
README.rst
main.go
testdata/whatsapp-export.zip [new file with mode: 0644]
whatsapp_import.go [new file with mode: 0644]
whatsapp_import_test.go [new file with mode: 0644]