2017-04-21 13:27:04 +02:00
|
|
|
---
|
|
|
|
title: keyboardButtonRow
|
|
|
|
description: keyboardButtonRow attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: keyboardButtonRow
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
|
|
|
|buttons|Array of [KeyboardButton](../types/KeyboardButton.md) | Yes|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [KeyboardButtonRow](../types/KeyboardButtonRow.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton], ];
|
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
|
|
|
{"_":"keyboardButtonRow","buttons":["KeyboardButton"]}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-04-21 13:27:04 +02:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
keyboardButtonRow={_='keyboardButtonRow', buttons={KeyboardButton}, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|