Link Search Menu Expand Document


Back to index

Author: Daniil Gentili

Represents a possible answer of a poll


  • $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:


getHTML(bool $allowTelegramTags = false): string

Get an HTML version of the answer.


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

Generated by danog/phpdoc