Learn R Programming

evolution (version 0.0.1)

send_status: Send a WhatsApp Status (story)

Description

Send a WhatsApp Status (story)

Usage

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
)

Value

A named list parsed from the JSON response returned by Evolution API. The object contains fields such as status, message, queueId, or other elements depending on the API endpoint. The HTTP status code of the request is stored in attr(result, "http_status"). This output represents the API-level confirmation of the status message sent.

Arguments

client

An evo_client() object.

type

One of "text", "image", "video", "document", "audio".

content

Text (for type = "text") or URL/base64 for media.

caption

Optional caption for media.

background_color

Hex color for text status background.

font

Integer font id.

all_contacts

Logical. Send to all contacts.

status_jid_list

Optional character vector of JIDs.

verbose

Logical. If TRUE, logs request/response details.