I don't know how to get working the code, probably i have an error writting the 'options' array. Code attached. I use the same elseif for "sendMessage"
and works perfect. Thanks!
https://core.telegram.org/bots/api#sendpoll
'options' => array('A','B','C'),
This is not working too
'options' => [ "A", "B", "C" ]
elseif (strpos($text, "/poll") === 0) {
$parameters2 = array(
'chat_id' => $chatId,
'options' => array('A','B','C'),
'question' => "Select correct one",
);
sendButton('sendPoll', $parameters);
}