KeyboardButtonCallback#

class pyrogram.raw.types.KeyboardButtonCallback#

Callback button Available only in inline keyboards. When pressed, clients send data to the bot, optionally providing the user’s 2FA SRP parameters for identity verification, as described in callback queries.

Constructor of KeyboardButton.

Details:
  • Layer: 227

  • ID: E62BC960

Parameters:
  • text (str) – Button text

  • data (bytes) – Callback data

  • requires_password (bool, optional) – Whether the user should verify his identity by entering his 2FA SRP parameters to the messages.getBotCallbackAnswer method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP. This button is mainly used by the official @botfather bot, for verifying the user’s identity before transferring ownership of a bot to another user.

  • 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.