sendConfirmPhoneCode method
Future<Result<AuthSentCodeBase> >
sendConfirmPhoneCode({
- required String hash,
- required CodeSettingsBase settings,
Send Confirm Phone Code.
ID: 1b3faa88
.
Implementation
Future<Result<AuthSentCodeBase>> sendConfirmPhoneCode({
required String hash,
required CodeSettingsBase settings,
}) async {
// Preparing the request.
final request = AccountSendConfirmPhoneCode(
hash: hash,
settings: settings,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<AuthSentCodeBase>();
}