MadelineProtoDocs/old_docs/API_docs_v95/constructors/pollAnswer.md
2019-12-27 17:48:04 +01: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'}