KeyboardButtonUserProfile

class pyrogram.raw.types.KeyboardButtonUserProfile

Button that links directly to a user profile

Constructor of KeyboardButton.

Details:
  • Layer: 227

  • ID: C0FD5D09

Parameters:
  • text (str) – Button text

  • user_id (int 64-bit) – User ID

  • style (KeyboardButtonStyle, optional)

Functions:

This object can be returned by 1 function.

bots.GetRequestedWebViewButton

Telegram API function.

TL Schema

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

= KeyboardButton

Parameter Tree

KeyboardButtonUserProfile
├── style → KeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primary → true (optional)
│ ├── bg_danger → true (optional)
│ ├── bg_success → true (optional)
│ └── icon → long (optional)
├── text → string
└── user_id → long

Example

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