L i ~dZddlmZmZmZddlmZddlmZddl m Z ddl m Z ddl mZerddlmZGd d e Zy ) zWThis module contains an object that represents a location to which a chat is connected.) TYPE_CHECKINGFinalOptional) constants)Location)TelegramObject)de_json_optional)JSONDict)BotceZdZUdZdZdddededeeffdZ e dd ed ed d dffd Z e jjZeeed< e jj&Zeeed<xZS) ChatLocationaThis object represents a location to which a chat is connected. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`location` is equal. Args: location (:class:`telegram.Location`): The location to which the supergroup is connected. Can't be a live location. address (:obj:`str`): Location address; :tg-const:`telegram.ChatLocation.MIN_ADDRESS`- :tg-const:`telegram.ChatLocation.MAX_ADDRESS` characters, as defined by the chat owner. Attributes: location (:class:`telegram.Location`): The location to which the supergroup is connected. Can't be a live location. address (:obj:`str`): Location address; :tg-const:`telegram.ChatLocation.MIN_ADDRESS`- :tg-const:`telegram.ChatLocation.MAX_ADDRESS` characters, as defined by the chat owner. )addresslocationN api_kwargsrrrct||||_||_|jf|_|j y)Nr)super__init__rr _id_attrs_freeze)selfrrr __class__s \/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_chatlocation.pyrzChatLocation.__init__8s: J/"* # --) databotr returnc|j|}t|jdt||d<t|||S)z,See :meth:`telegram.TelegramObject.de_json`.r)rr) _parse_datar getrrde_json)clsrrrs rr!zChatLocation.de_jsonGsBt$+DHHZ,@(CPZwDc22r MIN_ADDRESS MAX_ADDRESS)N)__name__ __module__ __qualname____doc__ __slots__rstrrr r classmethodr!r LocationLimitMIN_CHAT_LOCATION_ADDRESSr#rint__annotations__MAX_CHAT_LOCATION_ADDRESSr$ __classcell__)rs@rr r !s((I*.    X& 383(5/3^33(55OOKsO(55OOKsOrr N)r(typingrrrtelegramrtelegram._files.locationrtelegram._telegramobjectrtelegram._utils.argumentparsingr telegram._utils.typesr r r rrr9s2&^11-3<*8>8r