X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/6844f8c992ec4e276a3a0d93b544de0127eebbd2..59948b44c0fe2165b90e3aa0d18646f6c3d74af3:/socket.go?ds=sidebyside diff --git a/socket.go b/socket.go index 7b2da2b..0dffeb0 100644 --- a/socket.go +++ b/socket.go @@ -33,8 +33,10 @@ func checkSocketPath(path string) error { // 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. +// 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"` }