Layer 224
constructor
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

Name Type Description
StoreProduct string For official apps, tore 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.
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).

Returns

auth.SentCode

Gogram Example

// Creating AuthSentCodePaymentRequired constructor
obj := &tg.AuthSentCodePaymentRequired{
    StoreProduct: "Hello, World!",
    PhoneCodeHash: "Hello, World!",
    SupportEmailAddress: "Hello, World!",
    SupportEmailSubject: "Hello, World!",
    Currency: "Hello, World!",
    Amount: int64(1234567890),
}