L iRdZddlmZddlmZddlmZddlmZm Z GddeZ y) z2This module contains the LinkPreviewOptions class.)Optional)TelegramObject) DEFAULT_NONE)JSONDictODVInputcveZdZdZdZeeeeefdddeedeedeedeed eed e e f fd Z xZ 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_disabledprefer_large_mediaprefer_small_mediashow_above_texturlN api_kwargsr rr r r rct||||_||_||_||_||_|j|j|j|j |j f|_|jy)Nr) super__init__r rr r r _id_attrs_freeze)selfr rr r r r __class__s b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_linkpreviewoptions.pyrzLinkPreviewOptions.__init__Ks J/,7"%2D2D/>    HH  # #  # #    ) __name__ __module__ __qualname____doc__ __slots__rrboolstrrrr __classcell__)rs@rr r s$LI'3)-9-9*6 *.d^c]%TN  %TN  "$ X&rr N) rtypingrtelegram._telegramobjectrtelegram._utils.defaultvaluertelegram._utils.typesrrr rrr's$&9354JJr