
    > /i2                     v    d Z ddlmZmZmZmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ erddlmZ  G d d	e      Zy
)zSThis module contains a class that represents a Telegram InputInvoiceMessageContent.    )TYPE_CHECKINGOptionalSequenceTuple)InputMessageContent)LabeledPrice)parse_sequence_arg)JSONDict)Botc            -       4    e Zd ZdZdZ	 	 	 	 	 	 	 	 	 	 	 	 	 	 d dddedededed	ed
ee   dee	   deee	      dee   dee   dee	   dee	   dee	   dee
   dee
   dee
   dee
   dee
   dee
   dee
   dee   f* fdZedee   ddded    f fd       Z xZS )!InputInvoiceMessageContentaw  
    Represents the content of a invoice message to be sent as the result of an inline query.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`title`, :attr:`description`, :attr:`payload`,
    :attr:`provider_token`, :attr:`currency` and :attr:`prices` are equal.

    .. versionadded:: 13.5

    Args:
        title (:obj:`str`): Product name. :tg-const:`telegram.Invoice.MIN_TITLE_LENGTH`-
            :tg-const:`telegram.Invoice.MAX_TITLE_LENGTH` characters.
        description (:obj:`str`): Product description.
            :tg-const:`telegram.Invoice.MIN_DESCRIPTION_LENGTH`-
            :tg-const:`telegram.Invoice.MAX_DESCRIPTION_LENGTH` characters.
        payload (:obj:`str`): Bot-defined invoice payload.
            :tg-const:`telegram.Invoice.MIN_PAYLOAD_LENGTH`-
            :tg-const:`telegram.Invoice.MAX_PAYLOAD_LENGTH` bytes. This will not be displayed
            to the user, use for your internal processes.
        provider_token (:obj:`str`): Payment provider token, obtained via
            `@Botfather <https://t.me/Botfather>`_.
        currency (:obj:`str`): Three-letter ISO 4217 currency code, see more on
            `currencies <https://core.telegram.org/bots/payments#supported-currencies>`_
        prices (Sequence[:class:`telegram.LabeledPrice`]): Price breakdown, a list of
            components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus,
            etc.)

            .. versionchanged:: 20.0
                |sequenceclassargs|

        max_tip_amount (:obj:`int`, optional): The maximum accepted amount for tips in the
            *smallest* units of the currency (integer, **not** float/double). For example, for a
            maximum tip of US$ 1.45 pass ``max_tip_amount = 145``. See the ``exp`` parameter in
            `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_, it
            shows the number of digits past the decimal point for each currency (2 for the majority
            of currencies). Defaults to ``0``.
        suggested_tip_amounts (Sequence[:obj:`int`], optional): An array of suggested
            amounts of tip in the *smallest* units of the currency (integer, **not** float/double).
            At most 4 suggested tip amounts can be specified. The suggested tip amounts must be
            positive, passed in a strictly increased order and must not exceed
            :attr:`max_tip_amount`.

            .. versionchanged:: 20.0

                * |tupleclassattrs|
                * |alwaystuple|

        provider_data (:obj:`str`, optional): An object for data about the invoice,
            which will be shared with the payment provider. A detailed description of the required
            fields should be provided by the payment provider.
        photo_url (:obj:`str`, optional): URL of the product photo for the invoice. Can be a photo
            of the goods or a marketing image for a service. People like it better when they see
            what they are paying for.
        photo_size (:obj:`int`, optional): Photo size.
        photo_width (:obj:`int`, optional): Photo width.
        photo_height (:obj:`int`, optional): Photo height.
        need_name (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's full name to
            complete the order.
        need_phone_number (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's
            phone number to complete the order
        need_email (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's email
            address to complete the order.
        need_shipping_address (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's
            shipping address to complete the order
        send_phone_number_to_provider (:obj:`bool`, optional): Pass :obj:`True`, if user's phone
            number should be sent to provider.
        send_email_to_provider (:obj:`bool`, optional): Pass :obj:`True`, if user's email address
            should be sent to provider.
        is_flexible (:obj:`bool`, optional): Pass :obj:`True`, if the final price depends on the
            shipping method.

    Attributes:
        title (:obj:`str`): Product name. :tg-const:`telegram.Invoice.MIN_TITLE_LENGTH`-
            :tg-const:`telegram.Invoice.MAX_TITLE_LENGTH` characters.
        description (:obj:`str`): Product description.
            :tg-const:`telegram.Invoice.MIN_DESCRIPTION_LENGTH`-
            :tg-const:`telegram.Invoice.MAX_DESCRIPTION_LENGTH` characters.
        payload (:obj:`str`): Bot-defined invoice payload.
            :tg-const:`telegram.Invoice.MIN_PAYLOAD_LENGTH`-
            :tg-const:`telegram.Invoice.MAX_PAYLOAD_LENGTH` bytes. This will not be displayed
            to the user, use for your internal processes.
        provider_token (:obj:`str`): Payment provider token, obtained via
            `@Botfather <https://t.me/Botfather>`_.
        currency (:obj:`str`): Three-letter ISO 4217 currency code, see more on
            `currencies <https://core.telegram.org/bots/payments#supported-currencies>`_
        prices (Tuple[:class:`telegram.LabeledPrice`]): Price breakdown, a list of
            components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus,
            etc.)

            .. versionchanged:: 20.0
                |tupleclassattrs|

        max_tip_amount (:obj:`int`): Optional. The maximum accepted amount for tips in the
            *smallest* units of the currency (integer, **not** float/double). For example, for a
            maximum tip of US$ 1.45 ``max_tip_amount`` is ``145``. See the ``exp`` parameter in
            `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_, it
            shows the number of digits past the decimal point for each currency (2 for the majority
            of currencies). Defaults to ``0``.
        suggested_tip_amounts (Tuple[:obj:`int`]): Optional. An array of suggested
            amounts of tip in the *smallest* units of the currency (integer, **not** float/double).
            At most 4 suggested tip amounts can be specified. The suggested tip amounts must be
            positive, passed in a strictly increased order and must not exceed
            :attr:`max_tip_amount`.

            .. versionchanged:: 20.0
                |tupleclassattrs|

        provider_data (:obj:`str`): Optional. An object for data about the invoice,
            which will be shared with the payment provider. A detailed description of the required
            fields should be provided by the payment provider.
        photo_url (:obj:`str`): Optional. URL of the product photo for the invoice. Can be a photo
            of the goods or a marketing image for a service. People like it better when they see
            what they are paying for.
        photo_size (:obj:`int`): Optional. Photo size.
        photo_width (:obj:`int`): Optional. Photo width.
        photo_height (:obj:`int`): Optional. Photo height.
        need_name (:obj:`bool`): Optional. Pass :obj:`True`, if you require the user's full name to
            complete the order.
        need_phone_number (:obj:`bool`): Optional. Pass :obj:`True`, if you require the user's
            phone number to complete the order
        need_email (:obj:`bool`): Optional. Pass :obj:`True`, if you require the user's email
            address to complete the order.
        need_shipping_address (:obj:`bool`): Optional. Pass :obj:`True`, if you require the user's
            shipping address to complete the order
        send_phone_number_to_provider (:obj:`bool`): Optional. Pass :obj:`True`, if user's phone
            number should be sent to provider.
        send_email_to_provider (:obj:`bool`): Optional. Pass :obj:`True`, if user's email address
            should be sent to provider.
        is_flexible (:obj:`bool`): Optional. Pass :obj:`True`, if the final price depends on the
            shipping method.

    )titledescriptionpayloadprovider_tokencurrencypricesmax_tip_amountsuggested_tip_amountsprovider_data	photo_url
photo_sizephoto_widthphoto_height	need_nameneed_phone_number
need_emailneed_shipping_addresssend_phone_number_to_providersend_email_to_provideris_flexibleN
api_kwargsr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r#   c                >   t         |   |       | j                         5  || _        || _        || _        || _        || _        t        |      | _	        || _
        t        |      | _        |	| _        |
| _        || _        || _        || _        || _        || _        || _        || _        || _        || _        || _        | j                  | j                  | j
                  | j                  | j                  | j                  f| _        d d d        y # 1 sw Y   y xY w)Nr"   )super__init__	_unfrozenr   r   r   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   	_id_attrs)selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r#   	__class__s                         a/srv/sistema/bot/venv/lib/python3.12/site-packages/telegram/_inline/inputinvoicemessagecontent.pyr&   z#InputInvoiceMessageContent.__init__   s   2 	J/^^ 	#DJ$/D 'DL'5D!)DM4Fv4NDK1?D:LMb:cD&0=D,5DN-7DO.9D/;D-6DN5FD".8DO9ND&A^D.:PD'/:D 

  ##DN1	 	 	s   C(DDdatabotr   returnc                     | j                  |      }|syt        j                  |j                  d      |      |d<   t        |   ||      S )z,See :meth:`telegram.TelegramObject.de_json`.Nr   )r,   r-   )_parse_datar   de_listgetr%   de_json)clsr,   r-   r*   s      r+   r3   z"InputInvoiceMessageContent.de_json   sK    
 t$%--dhhx.@#FXwDc22    )NNNNNNNNNNNNNN)__name__
__module____qualname____doc__	__slots__strr   r   r   intboolr
   r&   classmethodr3   __classcell__)r*   s   @r+   r   r      s   CJI> )-9='+#'$(%)&*$(,0%)048<15&*+9. *./99 9 	9
 9 9 &9 !9  (69  }9 C=9 SM9 c]9 sm9 D>9  $D>!9" TN#9$  (~%9& (0~'9( !))9* d^+9. X&/9v 3H%3,13	.	/3 3r5   r   N)r9   typingr   r   r   r   $telegram._inline.inputmessagecontentr   telegram._payment.labeledpricer   telegram._utils.argumentparsingr	   telegram._utils.typesr
   telegramr   r    r5   r+   <module>rG      s2   & Z ; ; D 7 > *d3!4 d3r5   