KeyboardButtonRequestPhone
- class pyrogram.raw.types.KeyboardButtonRequestPhone
Button to request a user’s phone number
Constructor of
KeyboardButton.- Details:
Layer:
223ID:
417EFD8F
- Parameters:
text (
str) – Button textstyle (
KeyboardButtonStyle, optional)
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 →
stringExample
KeyboardButtonRequestPhone(
text="Open",
)