auth.SentCodePaymentRequired#
- class pyrogram.raw.types.auth.SentCodePaymentRequired[source]#
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, see here for more info.
Constructor of
SentCode.- Details:
Layer:
224ID:
E0955A3C
- Parameters:
store_product (
str) – For official apps, tore identifier of the Telegram Premium subscription.phone_code_hash (
str) – Phone code hash, to be stored and later re-used with auth.signInsupport_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) – Three-letter ISO 4217 currency code.amount (
int64-bit) – Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
- Functions:
This object can be returned by 7 functions.
Send the verification code for login
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.
Reset the login email .
Checks the status of a login payment.
Verify a new phone number to associate to the current account
Send confirmation code to cancel account deletion, for more info click here
Send the verification phone code for telegram passport.