KeyboardButtonRequestPhone

class pyrogram.raw.types.KeyboardButtonRequestPhone

Button to request a user’s phone number

Constructor of KeyboardButton.

Details:
  • Layer: 223

  • ID: 417EFD8F

Parameters:

TL Schema

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

= KeyboardButton

Parameter Tree

KeyboardButtonRequestPhone
├── styleKeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primarytrue (optional)
│ ├── bg_dangertrue (optional)
│ ├── bg_successtrue (optional)
│ └── iconlong (optional)
└── textstring

Example

KeyboardButtonRequestPhone(
    text="Open",
)