MadelineProtoDocs/old_docs/API_docs_v102/constructors/poll.md
2019-12-27 17:48:04 +01:00

914 B

title description image
poll Poll https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: poll

Back to constructors index

Poll

Attributes:

Name Type Required Description
id long Yes ID of the poll
closed Bool Optional Whether the poll is closed and doesn't accept any more answers
question string Yes The question of the poll
answers Array of PollAnswer Yes Answers

Type: Poll

Example:

$poll = ['_' => 'poll', 'id' => long, 'closed' => Bool, 'question' => 'string', 'answers' => [PollAnswer, PollAnswer]];

Or, if you're into Lua:

poll={_='poll', id=long, closed=Bool, question='string', answers={PollAnswer}}