L i RdZddlmZmZddlmZddlmZddlm Z GddeZ y) zBThis module contains an object that represents a Telegram Invoice.)FinalOptional) constants)TelegramObject)JSONDictceZdZUdZdZdddedededed ed eef fd Z e jjZ e eed < e jjZe eed < e jj Ze eed< e jj"Ze eed< e jj$Ze eed< e jj&Ze eed< e jj(Ze eed<xZS)InvoiceaThis object contains basic information about an invoice. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`title`, :attr:`description`, :paramref:`start_parameter`, :attr:`currency` and :attr:`total_amount` are equal. Args: title (:obj:`str`): Product name. description (:obj:`str`): Product description. start_parameter (:obj:`str`): Unique bot deep-linking parameter that can be used to generate this invoice. currency (:obj:`str`): Three-letter ISO 4217 currency code, or ``XTR`` for payments in |tg_stars|. total_amount (:obj:`int`): Total price 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). Attributes: title (:obj:`str`): Product name. description (:obj:`str`): Product description. start_parameter (:obj:`str`): Unique bot deep-linking parameter that can be used to generate this invoice. currency (:obj:`str`): Three-letter ISO 4217 currency code, or ``XTR`` for payments in |tg_stars|. total_amount (:obj:`int`): Total price 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). )currency descriptionstart_parametertitle total_amountN api_kwargsr r r r rrct||||_||_||_||_||_|j|j|j|j |j f|_|jy)Nr) super__init__r r r r r _id_attrs_freeze)selfr r r r rr __class__s _/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_payment/invoice.pyrzInvoice.__init__Isz J/ +$3% !- JJ     MM      MIN_TITLE_LENGTHMAX_TITLE_LENGTHMIN_DESCRIPTION_LENGTHMAX_DESCRIPTION_LENGTHMIN_PAYLOAD_LENGTHMAX_PAYLOAD_LENGTHMAX_TIP_AMOUNTS)__name__ __module__ __qualname____doc__ __slots__strintrrrr InvoiceLimitrr__annotations__rrrrrr __classcell__)rs@rr r sF"HI *.     X&6$-#9#9#J#JeCjJ$-#9#9#J#JeCjJ*3)?)?)V)VE#JV*3)?)?)V)VE#JV&/%;%;%N%Nc N&/%;%;%N%Nc N#,"8"8"H"HOU3ZHrr N) r$typingrrtelegramrtelegram._telegramobjectrtelegram._utils.typesrr rrr0s%&I"3*jnjr