auth.ResendCode

class pyrogram.raw.functions.auth.ResendCode

Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.

Details:
  • Layer: 223

  • ID: CAE47523

Parameters:
  • phone_number (str) – The phone number

  • phone_code_hash (str) – The phone code hash obtained from auth.sendCode

  • reason (str, optional) – Official clients only, used if the device integrity verification failed, and no secret could be obtained to invoke auth.requestFirebaseSms: in this case, the device integrity verification failure reason must be passed here.

Returns:

auth.SentCode

TL Schema

auth.resendCode#cae47523
flags:#
phone_number:string
phone_code_hash:string
reason:flags.0?string

= auth.SentCode

Parameter Tree

ResendCode
├── phone_numberstring
├── phone_code_hashstring
└── reasonstring (optional)

Example

await app.invoke(
    ResendCode(
        phone_number="text",
        phone_code_hash="text",
        reason="text",
    )
)