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

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

Invoice

Constructors

new
MessageMediaInvoice_(params: { shipping_address_requested?: true; test?: true; title: string; description: string; photo?: enums.WebDocument; receipt_msg_id?: number; currency: string; total_amount: bigint; start_param: string; extended_media?: enums.MessageExtendedMedia; })

Properties

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

Three-letter ISO 4217 currency code

description: string

Product description, 1-255 characters

optional
extended_media: enums.MessageExtendedMedia

Extended media

optional
photo: enums.WebDocument

URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.

optional
receipt_msg_id: number

Message ID of receipt: if set, clients should change the text of the first keyboardButtonBuy button always attached to the message to a localized version of the word Receipt

optional
shipping_address_requested: true

Whether the shipping address was requested

start_param: string

Unique bot deep-linking parameter that can be used to generate this invoice

optional
test: true

Whether this is an example invoice

title: string

Product name, 1-32 characters

total_amount: bigint

Total price 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