2017-01-25 23:16:22 +01:00
|
|
|
---
|
|
|
|
title: keyboardButtonCallback
|
|
|
|
description: keyboardButtonCallback attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: keyboardButtonCallback
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-03-11 19:54:51 +01:00
|
|
|
|text|[string](../types/string.md) | Yes|
|
|
|
|
|data|[bytes](../types/bytes.md) | Yes|
|
2017-01-25 23:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [KeyboardButton](../types/KeyboardButton.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$keyboardButtonCallback = ['_' => 'keyboardButtonCallback', 'text' => string, 'data' => bytes, ];
|
|
|
|
```
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
keyboardButtonCallback={_='keyboardButtonCallback', text=string, data=bytes, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|