Link Search Menu Expand Document

danog\MadelineProto\EventHandler\Poll\SinglePoll

Back to index

Author: Daniil Gentili daniil@daniil.it

Represents a poll with a option can be chosen as answer

Properties

  • $id: int ID of the poll
  • $closed: bool Whether the poll is closed and doesn’t accept any more answers
  • $question: string The question of the poll
  • $answers: list<PollAnswer> The possible answers
  • $closePeriod: ?int Amount of time in seconds the poll will be active after creation, 5-600
  • $closeDate: ?int Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future
  • $recentVoters: list<int> IDs of the last users that recently voted in the poll
  • $totalVoters: int Total number of people that voted in the poll

Method list:

Methods:

fromRawPoll(array $rawPoll): \danog\MadelineProto\EventHandler\AbstractPoll

Parameters:

  • $rawPoll: array

Generated by danog/phpdoc