auth.SentCodePaymentRequired

class pyrogram.raw.types.auth.SentCodePaymentRequired

Official apps may receive this constructor, indicating that due to the high cost of SMS verification codes for the user’s country/provider, the user must purchase a Telegram Premium subscription in order to proceed with the login/signup.

Constructor of SentCode.

Details:
  • Layer: 223

  • ID: E0955A3C

Parameters:
  • store_product (str) – Store identifier of the Telegram Premium subscription.

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

  • support_email_address (str) – An email address that can be contacted for more information about this request.

  • support_email_subject (str) – The mandatory subject for the email.

  • currency (str)

  • amount (int 64-bit)

Functions:

This object can be returned by 7 functions.

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.

auth.ResetLoginEmail

Reset the login email ».

auth.CheckPaidAuth

{schema}

account.SendChangePhoneCode

Verify a new phone number to associate to the current account

account.SendConfirmPhoneCode

Send confirmation code to cancel account deletion, for more info click here »

account.SendVerifyPhoneCode

Send the verification phone code for telegram passport.

TL Schema

auth.sentCodePaymentRequired#e0955a3c
store_product:string
phone_code_hash:string
support_email_address:string
support_email_subject:string
currency:string
amount:long

= auth.SentCode

Parameter Tree

SentCodePaymentRequired
├── store_productstring
├── phone_code_hashstring
├── support_email_addressstring
├── support_email_subjectstring
├── currencystring
└── amountlong

Example

SentCodePaymentRequired(
    store_product="text",
    phone_code_hash="text",
    support_email_address="text",
    support_email_subject="text",
    currency="text",
    amount=0,
)