telegram api method · layer 229 · #8e39261e
auth.requestFirebaseSms
Request an SMS code via Firebase.
definition
auth.requestFirebaseSms#8e39261e flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string play_integrity_token:flags.2?string ios_push_secret:flags.1?string = Bool;
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 | string | On Android, a JWS object obtained as described in the auth documentation » |
play_integrity_token | string | On Android, an object obtained as described in the auth documentation » |
ios_push_secret | string | Secret token received via an apple push notification |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | PHONE_CODE_EMPTY | phone_code is missing. |
| 400 | PHONE_NUMBER_INVALID | The phone number is invalid. |
history
present in layers 152–229 · constructor id changed 1×
| id | layers |
|---|---|
| #89464b50 | 152–179 |
| #8e39261e | 180–229 |