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

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

A user just sent a payment to me (a bot)

Constructors

new
MessageActionPaymentSentMe_(params: { recurring_init?: true; recurring_used?: true; currency: string; total_amount: bigint; payload: Uint8Array; info?: enums.PaymentRequestedInfo; shipping_option_id?: string; charge: enums.PaymentCharge; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
charge: enums.PaymentCharge

Provider payment identifier

currency: string

Three-letter ISO 4217 currency code

optional
info: enums.PaymentRequestedInfo

Order info provided by the user

payload: Uint8Array

Bot specified invoice payload

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

optional
shipping_option_id: string

Identifier of the shipping option chosen by the user

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