class pyrogram.types.SentCode

Contains info on a sent confirmation code.

  • type (str) – Type of the current sent code. Can be “app” (code sent via Telegram), “sms” (code sent via SMS), “call” (code sent via voice call) or “flash_call” (code is in the last 5 digits of the caller’s phone number).

  • phone_code_hash (str) – Confirmation code identifier useful for the next authorization steps (either sign_in() or sign_up()).

  • next_type (str) – Type of the next code to be sent with resend_code(). Can be “sms” (code will be sent via SMS), “call” (code will be sent via voice call) or “flash_call” (code will be in the last 5 digits of caller’s phone number).

  • timeout (int) – Delay in seconds before calling resend_code().