Button that links directly to a user profile
Use this constructor to send a keyboardButtonUserProfile button in an inline keyboard.
Constructor schema is available as of layer 222. Switch »
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| style | flags.10?KeyboardButtonStyle | Button style, see here » for more info on button styles. |
| text | string | Button text |
| user_id | InputUser | User ID |
Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.
Button that links directly to a user profile
Available only in inline keyboards.
When pressed, clients must open the profile of the user identified by user_id.
This page describes individual bot elements in greater detail. For a general overview of bots, read the introduction to bots first.