# danog\MadelineProto\EventHandler\Poll\PollAnswer: Represents a possible answer of a poll

[Back to index](../../../../index.html)

> 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](https://docs.madelineproto.xyz/API_docs/methods/messages.sendVote.html)
* `$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`](#getHTML)

## Methods:
### <a name="getHTML"></a> `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](https://phpdoc.daniil.it)
