auth.checkPhone

Returns information on whether the passed phone number was registered.

 Method schema is available as of layer 78. Switch »

Parameters

This constructor does not require any parameters.

Result

 

Possible errors

Code Type Description
400 PHONE_NUMBER_BANNED The provided phone number is banned from telegram.
406 PHONE_NUMBER_INVALID The phone number is invalid.

Query example

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

Bots can use this method