Raw.payments.PaymentReceipt
Receipt
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;
export namespace Raw {
export namespace payments {
export class PaymentReceipt {
constructor(params: {
date: number;
botId: bigint;
providerId: bigint;
title: string;
description: string;
photo?: Raw.TypeWebDocument;
invoice: Raw.TypeInvoice;
info?: Raw.TypePaymentRequestedInfo;
shipping?: Raw.TypeShippingOption;
tipAmount?: bigint;
currency: string;
totalAmount: bigint;
credentialsTitle: string;
users: Array<Raw.TypeUser>;
}) {}
}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x70c4fe03
Property
date
: numberDate of generation
botId
: bigintBot id
providerId
: bigintProvider id
title
: stringTitle
description
: stringDescription
photo
: Raw.TypeWebDocument or undefinedPhoto
invoice
: Raw.TypeInvoiceInvoice
info
: Raw.TypePaymentRequestedInfo or undefinedInfo
shipping
: Raw.TypeShippingOption or undefinedSelected shipping option
tipAmount
: bigint or undefinedTipped amount
currency
: stringThree-letter iso 4217 currency code
totalAmount
: bigintTotal 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
: stringPayment credential name
users
: Array of Raw.TypeUserUsers