MadelineProtoDocs/docs/API_docs/constructors/keyboardButtonRequestPoll.md

40 lines
979 B
Markdown

---
title: keyboardButtonRequestPoll
description: A button that allows the user to create and send a poll when pressed; available only in private
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: keyboardButtonRequestPoll
[Back to constructors index](index.md)
A button that allows the user to create and send a poll when pressed; available only in private
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|quiz|[Bool](../types/Bool.md) | Optional|If set, only quiz polls can be sent|
|text|[string](../types/string.md) | Yes|Button text|
### Type: [KeyboardButton](../types/KeyboardButton.md)
### Example:
```php
$keyboardButtonRequestPoll = ['_' => 'keyboardButtonRequestPoll', 'quiz' => Bool, 'text' => 'string'];
```
Or, if you're into Lua:
```lua
keyboardButtonRequestPoll={_='keyboardButtonRequestPoll', quiz=Bool, text='string'}
```