Nadia.LabeledPrice (nadia v1.6.1)

View Source

Typed builder for Telegram LabeledPrice objects.

Amounts must be integers in the smallest units of the currency. Telegram remains responsible for currency-specific limits and payment-provider rules.

Summary

Types

t()

A typed Telegram LabeledPrice value. Its representation is opaque.

Functions

Builds a labeled price portion.

Types

raw()

@type raw() :: keyword() | map() | struct()

t()

@opaque t()

A typed Telegram LabeledPrice value. Its representation is opaque.

Functions

new(label, amount)

@spec new(binary(), integer()) :: t()

Builds a labeled price portion.