auth.SentCodeTypeFirebaseSms

class pyrogram.raw.types.auth.SentCodeTypeFirebaseSms

An authentication code should be delivered via SMS after Firebase attestation, as described in the auth documentation ».

Constructor of SentCodeType.

Details:
  • Layer: 223

  • ID: 9FD736

Parameters:
  • length (int 32-bit) – Length of the code that will be delivered.

  • nonce (bytes, optional) – On Android, the nonce to be used as described in the auth documentation »

  • play_integrity_project_id (int 64-bit, optional) – Google Play Integrity project ID

  • play_integrity_nonce (bytes, optional) – Play Integrity API nonce

  • receipt (str, optional) – On iOS, must be compared with the receipt extracted from the received push notification.

  • push_timeout (int 32-bit, optional) – On iOS: if a push notification with the ios_push_secret isn’t received within push_timeout seconds, the next_type authentication method must be used, with auth.resendCode.

TL Schema

auth.sentCodeTypeFirebaseSms#9fd736
flags:#
nonce:flags.0?bytes
play_integrity_project_id:flags.2?long
play_integrity_nonce:flags.2?bytes
receipt:flags.1?string
push_timeout:flags.1?int
length:int

= auth.SentCodeType

Parameter Tree

SentCodeTypeFirebaseSms
├── noncebytes (optional)
├── play_integrity_project_idlong (optional)
├── play_integrity_noncebytes (optional)
├── receiptstring (optional)
├── push_timeoutint (optional)
└── lengthint

Example

SentCodeTypeFirebaseSms(
    length=0,
)