Layer 220
constructor
keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
RequiresPassword flags.0?true Whether the user should verify his identity by entering his 2 FA SRP parameters to the messages. get Bot Callback Answer 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.
Text string Button text
Data bytes Callback data

Returns

KeyboardButton

Gogram Example

// Creating KeyboardButtonCallback constructor
obj := &tg.KeyboardButtonCallback{
    Text: "...",
    Data: []byte{},

    // Optional fields:
    // RequiresPassword: true,
}