X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/7b8d8e8f4b57bd51fd6d0f0d926b821f06b0e1f0..59948b44c0fe2165b90e3aa0d18646f6c3d74af3:/whatsapp_send.go diff --git a/whatsapp_send.go b/whatsapp_send.go index d3d3cbc..b3bbe95 100644 --- a/whatsapp_send.go +++ b/whatsapp_send.go @@ -40,10 +40,10 @@ const ( // during the send gives an answer that the result is unknown, and not a second // send. A disconnected WhatsApp sends nothing and makes no record. link gives // the device, the client, and the own IDs, groups the names of the groups, and -// state the send records, and logger gets one line for each send. The clock gives the times of the records and the time -// zone of the answer. Image names are checked before the record is written, and -// uploads start only after the record is durable. Text-only records keep their -// text digest. +// state the send records, and logger gets one line for each send. The clock +// gives the times of the records and the time zone of the answer. Image names +// are checked before the record is written, and uploads start only after the +// record is durable. Text-only records keep their text digest. func whatsappSend(ctx context.Context, link WhatsAppLink, groups *WhatsAppGroups, state *WhatsAppState, images *ImageStore, logger *slog.Logger, clock func() time.Time, id, chat, text, image string) (string, error) { if !link.linked { return whatsappNotLinked, nil