Skip to main content

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.

type tg.AuthSentCodePaymentRequired struct { /* ... */ }

Implements auth.SentCode.

Fields

NameTypeRequiredDescription
StoreProductstringyesFor official apps, tore identifier of the Telegram Premium subscription.
PhoneCodeHashstringyesPhone code hash, to be stored and later re-used with auth.signIn
SupportEmailAddressstringyesAn email address that can be contacted for more information about this request.
SupportEmailSubjectstringyesThe mandatory subject for the email.
PremiumDaysintyesPremiumDays field of AuthSentCodePaymentRequired.
CurrencystringyesThree-letter ISO 4217 currency code.
Amountint64yesTotal 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).

References