]> git.giacomolli.uk - onechat/commit
Move whatsapp_send to its own file
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sun, 8 Nov 2026 21:40:53 +0000 (18:40 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sun, 8 Nov 2026 21:40:53 +0000 (18:40 -0300)
commit33aa709aa4e59e05ada6940a1c055f5e5646a418
tree4fa5be63ff662012d6dabf2fddc9fb6a9a3dd0f6
parent2e2524881dfe8f6c5cabfd9d342d5d3492953bd4
Move whatsapp_send to its own file

The send of whatsapp_send is now the function whatsappSend in
whatsapp_send.go, with its check of the arguments and its constants. It
owns no state: it gets a WhatsAppLink for the device, the client, the
connection, and the own IDs, the WhatsAppGroups for the name of a group
in the answer, and the state file for the send records. WhatsApp.Send
stays the entry point of the tool and gives the current link. The tests
of the tool move to whatsapp_send_test.go. The behavior does not change.

Issue: 6f69ca1
whatsapp.go
whatsapp_send.go [new file with mode: 0644]
whatsapp_send_test.go [new file with mode: 0644]
whatsapp_test.go