Link Search Menu Expand Document

Constructor: pollAnswer

Back to constructors index

A possible answer of a poll

Attributes:

NameTypeRequiredDescription
textstringYesTextual representation of the answer
optionbytesYesThe param that has to be passed to messages.sendVote.

Type: PollAnswer

Example:

$pollAnswer = ['_' => 'pollAnswer', 'text' => 'string', 'option' => 'bytes'];