Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>payments_PaymentReceipt_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class payments_PaymentReceipt_
import { payments_PaymentReceipt_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Receipt

Constructors

new
payments_PaymentReceipt_(params: { date: number; bot_id: bigint; provider_id: bigint; title: string; description: string; photo?: enums.WebDocument; invoice: enums.Invoice; info?: enums.PaymentRequestedInfo; shipping?: enums.ShippingOption; tip_amount?: bigint; currency: string; total_amount: bigint; credentials_title: string; users: Array<enums.User>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
bot_id: bigint

Bot ID

credentials_title: string

Payment credential name

currency: string

Three-letter ISO 4217 currency code

date: number

Date of generation

description: string

Description

optional
info: enums.PaymentRequestedInfo

Info

invoice: enums.Invoice

Invoice

optional
photo: enums.WebDocument

Photo

provider_id: bigint

Provider ID

optional
shipping: enums.ShippingOption

Selected shipping option

optional
tip_amount: bigint

Tipped amount

title: string

Title

total_amount: bigint

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).

users: Array<enums.User>

Users

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc