SentCode

class pyrogram.raw.types.auth.SentCode

Contains info about a sent verification code.

Constructor type of SentCode.

Details
  • Layer: 126

  • ID: 0x5e002502

Parameters
  • type (auth.SentCodeType) – Phone code type.

  • phone_code_hash (str) – Phone code hash, to be stored and later re-used with auth.signIn.

  • next_type (auth.CodeType, optional) – Phone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use auth.resendCode.

  • timeout (int 32-bit, optional) – Timeout for reception of the phone code.

Methods

This object can be returned by 5 methods:

auth.SendCode

Send the verification code for login.

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.

account.SendChangePhoneCode

Verify a new phone number to associate to the current account.

account.SendConfirmPhoneCode

Send confirmation code to cancel account deletion.

account.SendVerifyPhoneCode

Send the verification phone code for telegram passport.