Link Search Menu Expand Document

Constructor: pollAnswer

Back to constructors index

A possible answer of a poll

Attributes:

NameTypeRequiredDescription
textTextWithEntitiesYes
optionbytesYesThe param that has to be passed to messages.sendVote.

Type: PollAnswer

Example:

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