Layer 227
method Bots
bots.requestWebViewButton#31a2a35e user_id:InputUser button:KeyboardButton = bots.RequestedButton;

Parameters

Name Type Description
UserId InputUser The user that will use the prepared button in the Mini App
Button KeyboardButton The button to prepare, an input Keyboard Button Request Peer of any Request Peer Type

Gogram Example

// BotsRequestWebViewButton - positional arguments
result, err := client.BotsRequestWebViewButton(&tg.InputUserSelf{}, &tg.KeyboardButton{})
if err != nil {
    // handle error
}
// result is *tg.BotsRequestedButton

Possible Errors

Code Type Description
400 BUTTON_INVALID The specified button is invalid.
400 USER_BOT_REQUIRED This method can only be called by a bot.
400 USER_ID_INVALID The provided user ID is invalid.