KeyboardButtonUserProfile#

class pyrogram.raw.types.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.

Constructor of KeyboardButton.

Details:
  • Layer: 227

  • ID: C0FD5D09

Parameters:
  • text (str) – Button text

  • user_id (int 64-bit) – User ID

  • style (KeyboardButtonStyle, optional) – Button style, see here » for more info on button styles.

Functions:

This object can be returned by 1 function.

bots.GetRequestedWebViewButton

Fetch the peer request button a bot prepared for a Mini App with bots.requestWebViewButton, invoked when the Mini App emits a web_app_request_chat event, see here for more info.