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.

Constructor schema is available as of layer 213. Switch »

Parameters

Name Type Description
store_product string For official apps, tore identifier of the Telegram Premium subscription.
phone_code_hash string Phone code hash, to be stored and later re-used with auth.signIn
support_email_address string An email address that can be contacted for more information about this request.
support_email_subject string The mandatory subject for the email.
currency string Three-letter ISO 4217 currency code.
amount long 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).

Type

auth.SentCode

Related pages

auth.signIn

Signs in a user with a validated phone number.

Bot Payments API

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.

User Authorization

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