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.
mediaMessageMediaOptional
added_byPeerOptional
dateintOptional

Type: PollAnswer

Example:

$pollAnswer = ['_' => 'pollAnswer', 'text' => TextWithEntities, 'option' => 'bytes', 'media' => MessageMedia, 'added_by' => Peer, 'date' => int];