getRequestedWebViewButton method

Future<Result<KeyboardButtonBase>> getRequestedWebViewButton({
  1. required InputUserBase bot,
  2. required String webappReqId,
})

Get Requested Web View Button.

ID: bf25b7f3.

Implementation

Future<Result<KeyboardButtonBase>> getRequestedWebViewButton({
  required InputUserBase bot,
  required String webappReqId,
}) async {
  // Preparing the request.
  final request = BotsGetRequestedWebViewButton(
    bot: bot,
    webappReqId: webappReqId,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<KeyboardButtonBase>();
}