Layer 220
AuthSentCodePaymentRequired
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.
constructor
auth.sentCodePaymentRequired#d7a2fcf9 store_product:string phone_code_hash:string support_email_address:string support_email_subject:string = auth.SentCode;
Parameters
| Name | Type | Description |
|---|---|---|
| StoreProduct | string | Store identifier of the Telegram Premium subscription. |
| PhoneCodeHash | string | Phone code hash, to be stored and later re-used with auth. sign In |
| SupportEmailAddress | string | An email address that can be contacted for more information about this request. |
| SupportEmailSubject | string | The mandatory subject for the email. |
Returns
auth.SentCodeGogram Example
// Creating AuthSentCodePaymentRequired constructor obj := &tg.AuthSentCodePaymentRequired{ StoreProduct: "...", PhoneCodeHash: "...", SupportEmailAddress: "...", SupportEmailSubject: "...", }