KeyboardButtonRequestPhone

class pyrogram.raw.types.KeyboardButtonRequestPhone

Button to request a user’s phone number

Constructor of KeyboardButton.

Details:
  • Layer: 224

  • 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
├── styleKeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primarytrue (optional)
│ ├── bg_dangertrue (optional)
│ ├── bg_successtrue (optional)
│ └── iconlong (optional)
└── textstring

Example

KeyboardButtonRequestPhone(
    text="Open",
)