Layer 227
AuthRequestFirebaseSms
Request an SMS code via Firebase.
method
Users
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 |
|---|---|---|
| PhoneNumber | string | Phone number |
| PhoneCodeHash | string | Phone code hash returned by auth. send Code |
| SafetyNetToken | flags .0? string | On Android, a JWS object obtained as described in the auth documentation |
| PlayIntegrityToken | flags .2? string | On Android, an object obtained as described in the auth documentation |
| IosPushSecret | flags .1? string | Secret token received via an apple push notification |
Returns
BoolGogram Example
// AuthRequestFirebaseSms - positional arguments result, err := client.AuthRequestFirebaseSms("Hello, World!", "Hello, World!", "Hello, World!", "Hello, World!", "Hello, World!") if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PHONE_CODE_EMPTY | phone_code is missing. |
| 400 | PHONE_NUMBER_INVALID | The phone number is invalid. |