Link Search Menu Expand Document

Constructor: pollAnswer

Back to constructors index

A possible answer of a poll

Attributes:

NameTypeRequiredDescription
textTextWithEntitiesYesTextual representation of the answer (only Premium users can use custom emoji entities here).
optionbytesYesThe param that has to be passed to messages.sendVote.

Type: PollAnswer

Example:

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