MadelineProto/old_docs/API_docs_v40/constructors/keyboardButtonRow.md

43 lines
746 B
Markdown
Raw Normal View History

---
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:
```
2017-07-23 16:33:46 +02:00
$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton]];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "keyboardButtonRow", "buttons": [KeyboardButton]}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
keyboardButtonRow={_='keyboardButtonRow', buttons={KeyboardButton}}
```