Link Search Menu Expand Document

Constructor: payments.paymentReceipt

Back to constructors index

Receipt

Attributes:

NameTypeRequiredDescription
dateintYesDate of generation
bot_idlongYesBot ID
provider_idlongYesProvider ID
titlestringYesTitle
descriptionstringYesDescription
photoWebDocumentOptionalPhoto
invoiceInvoiceYesInvoice
infoPaymentRequestedInfoOptionalInfo
shippingShippingOptionOptionalSelected shipping option
tip_amountlongOptionalTipped amount
currencystringYesThree-letter ISO 4217 currency code
total_amountlongYesTotal 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).
credentials_titlestringYesPayment credential name
usersArray of UserYesUsers

Type: payments.PaymentReceipt

Example:

$payments_paymentReceipt = ['_' => 'payments.paymentReceipt', 'date' => int, 'bot_id' => long, 'provider_id' => long, 'title' => 'string', 'description' => 'string', 'photo' => WebDocument, 'invoice' => Invoice, 'info' => PaymentRequestedInfo, 'shipping' => ShippingOption, 'tip_amount' => long, 'currency' => 'string', 'total_amount' => long, 'credentials_title' => 'string', 'users' => [User, User]];