powered by
Posts a status (story) message visible to your contacts. Supports text or media (image, video, document, audio) types.
send_status( client, type = c("text", "image", "video", "document", "audio"), content, caption = NULL, background_color = NULL, font = NULL, all_contacts = FALSE, status_jid_list = NULL, verbose = FALSE )
A named list with the API response. The HTTP status code is stored in attr(result, "http_status").
attr(result, "http_status")
An evo_client() object.
evo_client()
One of "text", "image", "video", "document", "audio".
"text"
"image"
"video"
"document"
"audio"
Text (for type = "text") or URL/base64 for media.
type = "text"
Optional caption for media types.
Hex colour for text status background (e.g., "#FF5733").
"#FF5733"
Integer font id (0--14).
Logical. If TRUE, sends to all contacts.
TRUE
Optional character vector of specific JIDs to receive the status.
Logical. If TRUE, logs request/response details with cli.
if (FALSE) { send_status(client, type = "text", content = "Hello from R!", background_color = "#317873", font = 2, all_contacts = TRUE) }
Run the code above in your browser using DataLab