KeyboardButtonRequestPhone

class pyrogram.raw.types.KeyboardButtonRequestPhone

Button to request a user’s phone number

Constructor of KeyboardButton.

Details:
  • Layer: 227

  • ID: 417EFD8F

Parameters:
Functions:

This object can be returned by 1 function.

bots.GetRequestedWebViewButton

Telegram API function.

TL Schema

keyboardButtonRequestPhone#417efd8f
flags:#
style:flags.10?KeyboardButtonStyle
text:string

= KeyboardButton

Parameter Tree

KeyboardButtonRequestPhone
├── style → KeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primary → true (optional)
│ ├── bg_danger → true (optional)
│ ├── bg_success → true (optional)
│ └── icon → long (optional)
└── text → string

Example

KeyboardButtonRequestPhone(
    text="Open",
)