KeyboardButtonCallback
- class pyrogram.raw.types.KeyboardButtonCallback
Callback button
Constructor of
KeyboardButton.- Details:
Layer:
223ID:
E62BC960
- Parameters:
text (
str) – Button textdata (
bytes) – Callback datarequires_password (
bool, optional) – Whether the user should verify his identity by entering his 2FA SRP parameters to the messages.getBotCallbackAnswer method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP. This button is mainly used by the official @botfather bot, for verifying the user’s identity before transferring ownership of a bot to another user.style (
KeyboardButtonStyle, optional)
TL Schema
keyboardButtonCallback#e62bc960
flags:#
requires_password:flags.0?true
style:flags.10?KeyboardButtonStyle
text:string
data:bytes
= KeyboardButton
Parameter Tree
KeyboardButtonCallback
├── requires_password →
true (optional)├── style →
KeyboardButtonStyle (optional)│ └──
KeyboardButtonStyle│ ├── bg_primary →
true (optional)│ ├── bg_danger →
true (optional)│ ├── bg_success →
true (optional)│ └── icon →
long (optional)├── text →
string└── data →
bytesExample
KeyboardButtonCallback(
text="Open",
data=b"data",
)