changeAuthorizationSettings method
Change Authorization Settings.
ID: 40f48462.
Implementation
Future<Result<Boolean>> changeAuthorizationSettings({
required bool confirmed,
required int hash,
bool? encryptedRequestsDisabled,
bool? callRequestsDisabled,
}) async {
// Preparing the request.
final request = AccountChangeAuthorizationSettings(
confirmed: confirmed,
hash: hash,
encryptedRequestsDisabled: encryptedRequestsDisabled,
callRequestsDisabled: callRequestsDisabled,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}