Layer 220
constructor
payments.paymentReceipt#70c4fe03 flags:# date:int bot_id:long provider_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption tip_amount:flags.3?long currency:string total_amount:long credentials_title:string users:Vector<User> = payments.PaymentReceipt;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Date int Date of generation
BotId long Bot ID
ProviderId long Provider ID
Title string Title
Description string Description
Photo flags.2?WebDocument Photo
Invoice Invoice Invoice
Info flags.0?PaymentRequestedInfo Info
Shipping flags.1?ShippingOption Selected shipping option
TipAmount flags.3?long Tipped amount
Currency string Three-letter ISO 4217 currency code
TotalAmount long Total amount 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).
CredentialsTitle string Payment credential name
Users Vector<User> Users

Gogram Example

// Creating PaymentsPaymentReceipt constructor
obj := &tg.PaymentsPaymentReceipt{
    Date: 0,
    BotId: int64(0),
    ProviderId: int64(0),
    Title: "...",
    Description: "...",
    Invoice: &tg.Invoice{},
    // ... more required fields

    // Optional fields:
    // Photo: &tg.WebDocument{},
    // Info: &tg.PaymentRequestedInfo{},
    // Shipping: &tg.ShippingOption{},
    // TipAmount: int64(0),
}