Layer 227
KeyboardButtonCallback
Callback button
constructor
keyboardButtonCallback#e62bc960 flags:# requires_password:flags.0?true style:flags.10?KeyboardButtonStyle text:string data:bytes = KeyboardButton;
Parameters
| Name | Type | Description |
|---|---|---|
| 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. |
| Style | flags .10? KeyboardButtonStyle | Button style, see here for more info on button styles. |
| Text | string | Button text |
| Data | bytes | Callback data |
Returns
KeyboardButtonGogram Example
// Creating KeyboardButtonCallback constructor obj := &tg.KeyboardButtonCallback{ RequiresPassword: nil, Style: nil, Text: "Hello, World!", Data: []byte{0x01, 0x02, 0x03}, }