Link Search Menu Expand Document

Constructor: auth.sentCodePaymentRequired

Back to constructors index

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.

Attributes:

NameTypeRequiredDescription
store_productstringYesStore identifier of the Telegram Premium subscription.
phone_code_hashstringYesPhone code hash, to be stored and later re-used with auth.signIn
support_email_addressstringYesAn email address that can be contacted for more information about this request.
support_email_subjectstringYesThe mandatory subject for the email.
currencystringYes
amountlongYes

Type: auth.SentCode

Example:

$auth_sentCodePaymentRequired = ['_' => 'auth.sentCodePaymentRequired', 'store_product' => 'string', 'phone_code_hash' => 'string', 'support_email_address' => 'string', 'support_email_subject' => 'string', 'currency' => 'string', 'amount' => long];