Link Search Menu Expand Document

Constructor: keyboardButtonCallback

Back to constructors index

Callback button

Attributes:

NameTypeRequiredDescription
requires_passwordBoolOptionalWhether 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.
textstringYesButton text
databytesYesCallback data

Type: KeyboardButton

Example:

$keyboardButtonCallback = ['_' => 'keyboardButtonCallback', 'requires_password' => Bool, 'text' => 'string', 'data' => 'bytes'];