MadelineProtoDocs/docs/API_docs/constructors/poll.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

991 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
closed Bool Optional Closed?
question string Yes Question
answers Array of PollAnswer Yes Answers

Type: Poll

Example:

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

PWRTelegram json-encoded version:

{"_": "poll", "id": long, "closed": Bool, "question": "string", "answers": [PollAnswer]}

Or, if you're into Lua:

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