auth.requestFirebaseSms

Request an SMS code via Firebase.

 Method schema is available as of layer 180. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
phone_number string Phone number
phone_code_hash string Phone code hash returned by auth.sendCode
safety_net_token flags.0?string On Android, a JWS object obtained as described in the auth documentation »
ios_push_secret flags.1?string Secret token received via an apple push notification

Result

Bool

Possible errors

Code Type Description
400 PHONE_NUMBER_INVALID The phone number is invalid.

Related pages

auth.sendCode

Send the verification code for login

User Authorization

How to register a user's phone to start using the API.