TgKit library and website are still in early development!

Invoice Class

extends Base

Contains basic information about an invoice.

Properties

client Client

See the code

currency Currency

Three-letter ISO 4217 currency code, or "XTR" for payments in Telegram Stars

See the code

description string

Product description

See the code

startParameter string

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

See the code

title string

Product name

See the code

totalAmount number

Total price in the *smallest units* of the currency (integer, **not** float/double). For example, for a price of

See the code