auth.RequestFirebaseSms

class pyrogram.raw.functions.auth.RequestFirebaseSms

Request an SMS code via Firebase.

Details:
  • Layer: 223

  • ID: 8E39261E

Parameters:
  • phone_number (str) – Phone number

  • phone_code_hash (str) – Phone code hash returned by auth.sendCode

  • safety_net_token (str, optional) – On Android, a JWS object obtained as described in the auth documentation »

  • play_integrity_token (str, optional) – On Android, an object obtained as described in the auth documentation »

  • ios_push_secret (str, optional) – Secret token received via an apple push notification

Returns:

bool

TL Schema

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

Parameter Tree

RequestFirebaseSms
├── phone_numberstring
├── phone_code_hashstring
├── safety_net_tokenstring (optional)
├── play_integrity_tokenstring (optional)
└── ios_push_secretstring (optional)

Example

await app.invoke(
    RequestFirebaseSms(
        phone_number="text",
        phone_code_hash="text",
        safety_net_token="text",
        play_integrity_token="text",
        ios_push_secret="text",
    )
)