Use this method to send a native poll.
sendPoll(
question = NULL,
options = NULL,
is_anonymous = TRUE,
type = c("regular", "quiz"),
allows_multiple_answers = FALSE,
correct_option_id = NULL,
is_closed = FALSE,
disable_notification = NULL,
reply_to_message_id = NULL,
chat_id = NULL
)
Poll question, 1-255 characters
vector of possible answers: 2-10 strings 1-100 characters each
if TRUE (default) the poll needs to be anonymous
poll type, 'quiz' or 'regular', defaults to 'regular'
if TRUE the poll allows multiple answers (default to FALSE and ignored for polls in quiz mode)
0-based identifier of the correct answer option, required for polls in quiz mode (eg 0 set the first answer as correct)
if TRUE the poll needs to be immediately closed. This can be useful for poll preview. (default to FALSE)
Sends the message silently. Users will receive a notification with no sound
If the message is a reply, ID of the original message
Unique identifier for the target chat or username of the target channel (required)