Skip to content

export Class

LabeledPrices ​

extends ​

Builder

Constructor ​

ts
 new LabeledPrices( ...prices )
ParameterTypeDescription
...pricesLabeledPrice[]An array of labeled prices representing a portion of the price.

Methods ​

add( label, amount ) ​

ParameterTypeDescription
labelstringThe label of the portion.
amountnumberThe amount of the portion, see LabeledPrice for more info.

Adds a portion of a price to the list.

Returns: LabeledPrices

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.