Learn R Programming

evolution (version 0.0.1)

send_poll: Send a poll

Description

Send a poll

Usage

send_poll(client, number, name, values, selectable_count = 1L, verbose = FALSE)

Value

A named list parsed from the JSON response issued by Evolution API, including fields describing the created poll message (ID, timestamp, poll options, metadata). The HTTP status code is stored in attr(result, "http_status"). This output represents the API confirmation that the poll was created and dispatched.

Arguments

client

An evo_client() object.

number

Character. Recipient in E.164 format (e.g., "+5581999...").

name

Question text.

values

Character vector of options.

selectable_count

Integer (# options a user can select).

verbose

Logical. If TRUE, logs request/response details.