]> git.giacomolli.uk - onechat/blobdiff - whatsapp_state.go
Log image and message sends
[onechat] / whatsapp_state.go
index b1b5935c7536833728bea6a06230998b1ae605af..3d21b1680e3d0c25e58bb1860317fcf46613a32a 100644 (file)
@@ -298,12 +298,14 @@ type WhatsAppStateFile struct {
 }
 
 // WhatsAppSend is the record of one send: the ID that the agent gave, the chat,
 }
 
 // WhatsAppSend is the record of one send: the ID that the agent gave, the chat,
-// the SHA-256 of the text, the WhatsApp message ID, the state, which is
-// sending, sent, or failed, the answer of the tool, and the time of its start.
+// the SHA-256 of the text, an optional stored image name, the WhatsApp message
+// ID, the state, which is sending, sent, or failed, the answer of the tool, and
+// the time of its start.
 type WhatsAppSend struct {
        ID        string    `json:"id"`
        Chat      string    `json:"chat"`
        Digest    string    `json:"digest"`
 type WhatsAppSend struct {
        ID        string    `json:"id"`
        Chat      string    `json:"chat"`
        Digest    string    `json:"digest"`
+       Image     string    `json:"image,omitempty"`
        MessageID string    `json:"message_id"`
        State     string    `json:"state"`
        Answer    string    `json:"answer,omitempty"`
        MessageID string    `json:"message_id"`
        State     string    `json:"state"`
        Answer    string    `json:"answer,omitempty"`