inputKeyboardButtonUserProfile

Button that links directly to a user profile

Use this constructor to send a keyboardButtonUserProfile button in an inline keyboard.

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

Parameters

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

Type

KeyboardButton

Related pages

Bot buttons

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.

keyboardButtonUserProfile

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.

Telegram Bot Features

This page describes individual bot elements in greater detail. For a general overview of bots, read the introduction to bots first.