2020-03-06 12:24:14 +01:00
|
|
|
---
|
|
|
|
title: keyboardButtonRequestPoll
|
2020-06-16 17:50:25 +02:00
|
|
|
description: A button that allows the user to create and send a poll when pressed; available only in private
|
2020-03-06 12:24:14 +01:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: keyboardButtonRequestPoll
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-16 17:50:25 +02:00
|
|
|
A button that allows the user to create and send a poll when pressed; available only in private
|
|
|
|
|
2020-03-06 12:24:14 +01:00
|
|
|
### Attributes:
|
|
|
|
|
2020-06-16 17:50:25 +02:00
|
|
|
| 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|
|
2020-03-06 12:24:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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'}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|