44 lines
759 B
Markdown
44 lines
759 B
Markdown
---
|
|
title: keyboardButtonTypeText
|
|
description: Simple button with a text, which should be sent when the button is pressed
|
|
---
|
|
## Constructor: keyboardButtonTypeText
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
Simple button with a text, which should be sent when the button is pressed
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|
|
|
|
### Type: [KeyboardButtonType](../types/KeyboardButtonType.md)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$keyboardButtonTypeText = ['_' => 'keyboardButtonTypeText'];
|
|
```
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
```
|
|
{"_": "keyboardButtonTypeText"}
|
|
```
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
```
|
|
keyboardButtonTypeText={_='keyboardButtonTypeText'}
|
|
|
|
```
|
|
|
|
|