MadelineProtoDocs/docs/API_docs/constructors/pollAnswer.md
2024-05-01 14:53:46 +02:00

31 lines
796 B
Markdown

---
title: "pollAnswer"
description: "A possible answer of a poll"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: pollAnswer
[Back to constructors index](/API_docs/constructors/index.html)
A possible answer of a poll
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|text|[TextWithEntities](/API_docs/types/TextWithEntities.html) | Yes|
|option|[bytes](/API_docs/types/bytes.html) | Yes|The param that has to be passed to [messages.sendVote](../methods/messages.sendVote.html).|
### Type: [PollAnswer](/API_docs/types/PollAnswer.html)
### Example:
```
$pollAnswer = ['_' => 'pollAnswer', 'text' => TextWithEntities, 'option' => 'bytes'];
```