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
| Name | Type | Required | Description |
|---|---|---|---|
StoreProduct | string | yes | For official apps, tore identifier of the Telegram Premium subscription. |
PhoneCodeHash | string | yes | Phone code hash, to be stored and later re-used with auth.signIn |
SupportEmailAddress | string | yes | An email address that can be contacted for more information about this request. |
SupportEmailSubject | string | yes | The mandatory subject for the email. |
PremiumDays | int | yes | PremiumDays field of AuthSentCodePaymentRequired. |
Currency | string | yes | Three-letter ISO 4217 currency code. |
Amount | int64 | yes | 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). |
References
- Official documentation
- Generated Go reference
- TL definition:
auth.sentCodePaymentRequired#f8827ebf