request_firebase_sms()¶
- async Client.request_firebase_sms()¶
Request an SMS verification code via Firebase.
Usable by Users Bots- Parameters:
phone_number (
str) – Phone number where to send the code.phone_code_hash (
str) – Phone code hash returned by send_code.safety_net_token (
str, optional) – SafetyNet JWS token on Android.play_integrity_token (
str, optional) – Play Integrity token on Android.ios_push_secret (
str, optional) – Secret token received via Apple push notification on iOS.
- Returns:
bool– On success, True is returned.
Example
await app.request_firebase_sms("+1234567890", code_hash, play_integrity_token=token)