Link Search Menu Expand Document

danog\MadelineProto\EventHandler\Poll\PollAnswer

Back to index

Author: Daniil Gentili daniil@daniil.it

Represents a possible answer of a poll

Properties

  • $text: string Textual representation of the answer
  • $entities: list<MessageEntity> Styled text entities in the answer.
  • $option: string The param that has to be passed to messages.sendVote
  • $chosen: ?bool Whether we have chosen this answer
  • $correct: ?bool For quizzes, whether the option we have chosen is correct
  • $voters: ?int How many users voted for this option

Method list:

Methods:

getHTML(bool $allowTelegramTags = false): string

Get an HTML version of the answer.

Parameters:

  • $allowTelegramTags: bool Whether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on…

Generated by danog/phpdoc