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.

Layer 223

keyboardButtonCallback#e62bc960 flags:# requires_password:flags.0?true style:flags.10?KeyboardButtonStyle text:string data:bytes = KeyboardButton;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
requires_passwordflags.0?trueWhether 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.
styleflags.10?KeyboardButtonStyleButton style, see here » for more info on button styles.
textstringButton text
databytesCallback data

Type #

KeyboardButton

Two-factor authentication #

How to login to a user's account if they have enabled 2FA, how to change password.

messages.getBotCallbackAnswer #

Press an inline callback button and get a callback answer from the bot

Bot buttons #

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

replyInlineMarkup #

Represents an inline keyboard