requestWebViewButton method
Future<Result<BotsRequestedButtonBase> >
requestWebViewButton({
- required InputUserBase userId,
- required KeyboardButtonBase button,
Request Web View Button.
ID: 31a2a35e.
Implementation
Future<Result<BotsRequestedButtonBase>> requestWebViewButton({
required InputUserBase userId,
required KeyboardButtonBase button,
}) async {
// Preparing the request.
final request = BotsRequestWebViewButton(userId: userId, button: button);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<BotsRequestedButtonBase>();
}