X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/47f69638bc96100f2e446f63c7c3689023156e64..3b2bf881d484ba1a33ff77a342564b8195a75c80:/socket.go diff --git a/socket.go b/socket.go index 36d6641..0dffeb0 100644 --- a/socket.go +++ b/socket.go @@ -30,8 +30,13 @@ func checkSocketPath(path string) error { } // SocketRequest is one line from a client: "send" with the text of a user -// message, "interrupt", or "stop" with the name of a subagent in Text. +// message, "interrupt", "stop" with the name of a subagent in Text, or +// "whatsapp" with the text after /whatsapp of a WhatsApp command, or "backup" +// with the absolute output path in Text. The backup answer is a "backup" event +// with the path and size, or an "error" event. An "image" request has an +// absolute Path and the caption in Text. type SocketRequest struct { Type string `json:"type"` Text string `json:"text,omitempty"` + Path string `json:"path,omitempty"` }