InputKeyboardButtonUserProfile
- class pyrogram.raw.types.InputKeyboardButtonUserProfile
Button that links directly to a user profile
Constructor of
KeyboardButton.- Details:
Layer:
223ID:
7D5E07C7
- Parameters:
text (
str) – Button textuser_id (
InputUser) – User IDstyle (
KeyboardButtonStyle, optional)
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│ ├──
InputPeerUserFromMessage├── msg_id →
int└── user_id →
longExample
InputKeyboardButtonUserProfile(
text="Open",
user_id=await app.resolve_user(chat_id),
)