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, see here » for more info.

Layer 223

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

Parameters #

NameTypeDescription
store_productstringFor official apps, tore identifier of the Telegram Premium subscription.
phone_code_hashstringPhone code hash, to be stored and later re-used with auth.signIn
support_email_addressstringAn email address that can be contacted for more information about this request.
support_email_subjectstringThe mandatory subject for the email.
premium_daysintDuration in days of the Telegram Premium subscription granted by this purchase.
currencystringThree-letter ISO 4217 currency code.
amountlongTotal 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).

Type #

auth.SentCode

auth.signIn #

Signs in a user with a validated phone number.

Telegram Premium #

Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.

Bot Payments API #

User Authorization #

How to register a user's phone to start using the API.