44 lines
881 B
Markdown
44 lines
881 B
Markdown
---
|
|
title: keyboardButtonTypeRequestPhoneNumber
|
|
description: A button which sends user's phone number when pressed, available only in private chats
|
|
---
|
|
## Constructor: keyboardButtonTypeRequestPhoneNumber
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
A button which sends user's phone number when pressed, available only in private chats
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|:-------------:|:--------:|------------:|
|
|
|
|
|
|
|
|
### Type: [KeyboardButtonType](../types/KeyboardButtonType.md)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$keyboardButtonTypeRequestPhoneNumber = ['_' => 'keyboardButtonTypeRequestPhoneNumber'];
|
|
```
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
```
|
|
{"_": "keyboardButtonTypeRequestPhoneNumber"}
|
|
```
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
```
|
|
keyboardButtonTypeRequestPhoneNumber={_='keyboardButtonTypeRequestPhoneNumber'}
|
|
|
|
```
|
|
|
|
|