importWebTokenAuthorization method
Import Web Token Authorization.
ID: 2db873a9
.
Implementation
Future<Result<AuthAuthorizationBase>> importWebTokenAuthorization({
required int apiId,
required String apiHash,
required String webAuthToken,
}) async {
// Preparing the request.
final request = AuthImportWebTokenAuthorization(
apiId: apiId,
apiHash: apiHash,
webAuthToken: webAuthToken,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<AuthAuthorizationBase>();
}