§
    ©eîiq  ã                   óN   — d Z ddlmZ ddlmZ ddlmZmZ  G d„ de¦  «        ZdS )z2This module contains the LinkPreviewOptions class.é    )ÚTelegramObject)ÚDEFAULT_NONE)ÚJSONDictÚODVInputc                   ó”   ‡ — e Zd ZdZdZeeeeefddœdee         dee         dee         dee         d	ee         d
e	dz  fˆ fd„Z
ˆ xZS )ÚLinkPreviewOptionsaí  
    Describes the options used for link preview generation.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`is_disabled`, :attr:`url`, :attr:`prefer_small_media`,
    :attr:`prefer_large_media`, and :attr:`show_above_text` are equal.

    .. versionadded:: 20.8

    Args:
        is_disabled (:obj:`bool`, optional): :obj:`True`, if the link preview is disabled.
        url (:obj:`str`, optional): The URL to use for the link preview. If empty, then the first
            URL found in the message text will be used.
        prefer_small_media (:obj:`bool`, optional): :obj:`True`, if the media in the link preview
            is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size
            change isn't supported for the preview.
        prefer_large_media (:obj:`bool`, optional): :obj:`True`, if the media in the link preview
            is supposed to be enlarged; ignored if the URL isn't explicitly specified or media
            size change isn't supported for the preview.
        show_above_text (:obj:`bool`, optional): :obj:`True`, if the link preview must be shown
            above the message text; otherwise, the link preview will be shown below the message
            text.

    Attributes:
        is_disabled (:obj:`bool`): Optional. :obj:`True`, if the link preview is disabled.
        url (:obj:`str`): Optional. The URL to use for the link preview. If empty, then the first
            URL found in the message text will be used.
        prefer_small_media (:obj:`bool`): Optional. :obj:`True`, if the media in the link preview
            is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size
            change isn't supported for the preview.
        prefer_large_media (:obj:`bool`): Optional. :obj:`True`, if the media in the link preview
            is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size
            change isn't supported for the preview.
        show_above_text (:obj:`bool`): Optional. :obj:`True`, if the link preview must be shown
            above the message text; otherwise, the link preview will be shown below the message
            text.
    )Úis_disabledÚprefer_large_mediaÚprefer_small_mediaÚshow_above_textÚurlN©Ú
api_kwargsr	   r   r   r
   r   r   c                ó  •— t          ¦   «                              |¬¦  «         || _        || _        || _        || _        || _        | j        | j        | j        | j        | j        f| _        |                      ¦   «          d S )Nr   )	ÚsuperÚ__init__r	   r   r   r
   r   Ú	_id_attrsÚ_freeze)Úselfr	   r   r   r
   r   r   Ú	__class__s          €ú`/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_linkpreviewoptions.pyr   zLinkPreviewOptions.__init__I   s„   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/ð ,7ˆÔØ"%ˆŒØ2DˆÔØ2DˆÔØ/>ˆÔð ÔØŒHØÔ#ØÔ#ØÔ ð
ˆŒð 	�Š‰Œˆˆˆó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r   ÚboolÚstrr   r   Ú__classcell__)r   s   @r   r   r      sÆ   ø€ € € € € ð$ð $ðL€Ið '3Ø)Ø-9Ø-9Ø*6ðð '+ðð ð à˜d”^ðð �cŒ]ðð % TœNð	ð
 % TœNðð " $œðð ˜t‘Oðð ð ð ð ð ð ð ð ð r   r   N)	r   Útelegram._telegramobjectr   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   r   r   © r   r   ú<module>r%      s‡   ðð& 9Ð 8à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4ðJð Jð Jð Jð J˜ñ Jô Jð Jð Jð Jr   