mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-04 02:28:31 +01:00
30 lines
645 B
Markdown
30 lines
645 B
Markdown
|
---
|
||
|
title: "keyboardButtonBuy"
|
||
|
description: "Button to buy a product"
|
||
|
nav_exclude: true
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
---
|
||
|
# Constructor: keyboardButtonBuy
|
||
|
[Back to constructors index](/API_docs/constructors/index.html)
|
||
|
|
||
|
|
||
|
|
||
|
Button to buy a product
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|---------------|----------|-------------|
|
||
|
|text|[string](/API_docs/types/string.html) | Yes|Button text|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [KeyboardButton](/API_docs/types/KeyboardButton.html)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```
|
||
|
$keyboardButtonBuy = ['_' => 'keyboardButtonBuy', 'text' => 'string'];
|
||
|
```
|