Layer 224
KeyboardButtonRequestPhone
Button to request a user's phone number
constructor
keyboardButtonRequestPhone#417efd8f flags:# style:flags.10?KeyboardButtonStyle text:string = KeyboardButton;
Parameters
| Name | Type | Description |
|---|---|---|
| Style | flags.10?KeyboardButtonStyle | |
| Text | string | Button text |
Returns
KeyboardButtonGogram Example
// Creating KeyboardButtonRequestPhone constructor obj := &tg.KeyboardButtonRequestPhone{ Text: "Hello, World!", // Optional fields: // Style: &tg.KeyboardButtonStyle{}, }