MadelineProtoDocs/old_docs/API_docs_v41/constructors/pollAnswer.md
2020-06-16 17:50:25 +02:00

832 B

title description image
pollAnswer A possible answer of a poll https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: pollAnswer

Back to constructors index

A possible answer of a poll

Attributes:

Name Type Required Description
text string Yes Textual representation of the answer
option bytes Yes The param that has to be passed to messages.sendVote.

Type: PollAnswer

Example:

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

Or, if you're into Lua:

pollAnswer={_='pollAnswer', text='string', option='bytes'}