telegram-bot-api-7.4.4: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Types.LabeledPrice

Contents

Synopsis

LabeledPrice

data LabeledPrice Source #

This object represents a portion of the price for goods or services.

Constructors

LabelPrice 

Fields

  • labeledPriceLabel :: Text

    Portion label.

  • labeledPriceAmount :: Int

    Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

Instances

Instances details
FromJSON LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types.LabeledPrice

ToJSON LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types.LabeledPrice

Generic LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types.LabeledPrice

Associated Types

type Rep LabeledPrice :: Type -> Type #

Show LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types.LabeledPrice

type Rep LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types.LabeledPrice

type Rep LabeledPrice = D1 ('MetaData "LabeledPrice" "Telegram.Bot.API.Types.LabeledPrice" "telegram-bot-api-7.4.4-fdOK3VCUfTCfzXncfzYz7" 'False) (C1 ('MetaCons "LabelPrice" 'PrefixI 'True) (S1 ('MetaSel ('Just "labeledPriceLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "labeledPriceAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))