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>MessageActionPaymentSent_

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

A payment was sent

Constructors

new
MessageActionPaymentSent_(params: { recurring_init?: true; recurring_used?: true; currency: string; total_amount: bigint; invoice_slug?: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
currency: string

Three-letter ISO 4217 currency code

optional
invoice_slug: string

An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter »

optional
recurring_init: true

Whether this is the first payment of a recurring payment we just subscribed to

optional
recurring_used: true

Whether this payment is part of a recurring payment

total_amount: bigint

Price of the product 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).

Static Properties

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