KeyboardButtonUserProfile

class pyrogram.raw.types.KeyboardButtonUserProfile

Button that links directly to a user profile

Constructor of KeyboardButton.

Details:
  • Layer: 223

  • ID: C0FD5D09

Parameters:
  • text (str) – Button text

  • user_id (int 64-bit) – User ID

  • style (KeyboardButtonStyle, optional)

TL Schema

keyboardButtonUserProfile#c0fd5d09
flags:#
style:flags.10?KeyboardButtonStyle
text:string
user_id:long

= KeyboardButton

Parameter Tree

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

Example

KeyboardButtonUserProfile(
    text="Open",
    user_id=0,
)