auth.checkPhone

Returns information on whether the passed phone number was registered.

auth.checkedPhone#e300cc3b phone_registered:Bool phone_invited:Bool = auth.CheckedPhone;
---functions---
auth.checkPhone#6fe51dfb phone_number:string = auth.CheckedPhone;

Parameters

phone_number string Phone number in the international format

Result

The method returns an auth.CheckedPhone type object with information on whether an account with such a phone number has already been registered, as well as whether invitations were sent to this number (using the auth.sendInvites method).

Query example

(auth.checkPhone "79123413132")
=
(auth.checkedPhone
  phone_registered:(boolFalse)
  phone_invited:(boolFalse)
)

Possible errors

Code Type Description
400 BAD_REQUEST PHONE_NUMBER_INVALID Invalid phone number