confirmPhone method
Confirm Phone.
ID: 5f2178c3
.
Implementation
Future<Result<Boolean>> confirmPhone({
required String phoneCodeHash,
required String phoneCode,
}) async {
// Preparing the request.
final request = AccountConfirmPhone(
phoneCodeHash: phoneCodeHash,
phoneCode: phoneCode,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}