InputKeyboardButtonUserProfile

class pyrogram.raw.types.InputKeyboardButtonUserProfile

Button that links directly to a user profile

Constructor of KeyboardButton.

Details:
  • Layer: 223

  • ID: 7D5E07C7

Parameters:

TL Schema

inputKeyboardButtonUserProfile#7d5e07c7
flags:#
style:flags.10?KeyboardButtonStyle
text:string
user_id:InputUser

= KeyboardButton

Parameter Tree

InputKeyboardButtonUserProfile
├── styleKeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primarytrue (optional)
│ ├── bg_dangertrue (optional)
│ ├── bg_successtrue (optional)
│ └── iconlong (optional)
├── textstring
└── user_idInputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

InputKeyboardButtonUserProfile(
    text="Open",
    user_id=await app.resolve_user(chat_id),
)