File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -1633,11 +1633,20 @@ type InputContactMessageContent struct {
1633
1633
1634
1634
// Invoice contains basic information about an invoice.
1635
1635
type Invoice struct {
1636
- Title string `json:"title"`
1637
- Description string `json:"description"`
1636
+ // Title product name
1637
+ Title string `json:"title"`
1638
+ // Description product description
1639
+ Description string `json:"description"`
1640
+ // StartParameter unique bot deep-linking parameter that can be used to generate this invoice
1638
1641
StartParameter string `json:"start_parameter"`
1639
- Currency string `json:"currency"`
1640
- TotalAmount int `json:"total_amount"`
1642
+ // Currency three-letter ISO 4217 currency code
1643
+ // (see https://core.telegram.org/bots/payments#supported-currencies)
1644
+ Currency string `json:"currency"`
1645
+ // TotalAmount otal price in the smallest units of the currency (integer, not float/double).
1646
+ // For example, for a price of US$ 1.45 pass amount = 145.
1647
+ // See the exp parameter in currencies.json, it shows the number of digits
1648
+ // past the decimal point for each currency (2 for the majority of currencies).
1649
+ TotalAmount int `json:"total_amount"`
1641
1650
}
1642
1651
1643
1652
// LabeledPrice represents a portion of the price for goods or services.
You can’t perform that action at this time.
0 commit comments