Skip to content

export Class

ShippingOptions ​

extends ​

Builder

Constructor ​

ts
 new ShippingOptions( ...shippings )
ParameterTypeDescription
...shippingsShippingOptionPayload[]Available shipping options for flexible invoices.

Methods ​

add( id, title, prices ) ​

ParameterTypeDescription
idstringShipping option identifier
titlestringShipping option title.
pricesLabeledPrices | LabeledPrice[]List of price portions.

Adds a new shipping option.

Returns: ShippingOptions

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