danog\MadelineProto\EventHandler\AbstractPoll
Author: Daniil Gentili daniil@daniil.it
Poll
Properties
$id:intID of the poll$closed:boolWhether the poll is closed and doesn’t accept any more answers$question:stringThe question of the poll$questionEntities:list<MessageEntity>Styled text entities in the question of the poll.$answers:list<PollAnswer>The possible answers$closePeriod:?intAmount of time in seconds the poll will be active after creation, 5-600$closeDate:?intPoint 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:?intTotal number of people that voted in the poll
Method list:
fromRawPoll(array $rawPoll): \danog\MadelineProto\EventHandler\AbstractPollgetQuestionHTML(bool $allowTelegramTags = false): string
Methods:
fromRawPoll(array $rawPoll): \danog\MadelineProto\EventHandler\AbstractPoll
Parameters:
$rawPoll:array
getQuestionHTML(bool $allowTelegramTags = false): string
Get an HTML version of the question.
Parameters:
$allowTelegramTags:boolWhether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on…
Generated by danog/phpdoc