InputKeyboardButtonUserProfile

class pyrogram.raw.types.InputKeyboardButtonUserProfile

Button that links directly to a user profile

Constructor of KeyboardButton.

Details:
  • Layer: 227

  • ID: 7D5E07C7

Parameters:
Functions:

This object can be returned by 1 function.

bots.GetRequestedWebViewButton

Telegram API function.

TL Schema

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

= KeyboardButton

Parameter Tree

InputKeyboardButtonUserProfile
├── style → KeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primary → true (optional)
│ ├── bg_danger → true (optional)
│ ├── bg_success → true (optional)
│ └── icon → long (optional)
├── text → string
└── user_id → InputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_id → long
│ └── access_hash → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── user_id → long

Example

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