
    Yi                     |    S r SSKJrJrJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  \(       a  SSKJr   " S S	\
5      rg
)zWThis module contains an object that represents a location to which a chat is connected.    )TYPE_CHECKINGFinalOptional)	constants)Location)TelegramObject)JSONDict)Botc            	         ^  \ rS rSr% SrSrSS.S\S\S\\	   4U 4S	 jjjr
\ SS
\\	   S\S   S\S    4U 4S jjj5       r\R                  R                  r\\   \S'    \R                  R(                  r\\   \S'   SrU =r$ )ChatLocation    aj  This 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.

)addresslocationN
api_kwargsr   r   r   c                |   > [         TU ]  US9  Xl        X l        U R                  4U l        U R                  5         g )Nr   )super__init__r   r   	_id_attrs_freeze)selfr   r   r   	__class__s       A/app/.venv/lib/python3.13/site-packages/telegram/_chatlocation.pyr   ChatLocation.__init__7   s6     	J/"*#--)    databotr
   returnc                    > U R                  U5      nU(       d  g[        R                  " UR                  S5      U5      US'   [        TU ]	  XS9$ )z,See :meth:`telegram.TelegramObject.de_json`.Nr   )r   r   )_parse_datar   de_jsongetr   )clsr   r   r   s      r   r!   ChatLocation.de_jsonF   sJ    
 t$#++DHHZ,@#FZwD22r   MIN_ADDRESSMAX_ADDRESS)r   r   r   )N)__name__
__module____qualname____firstlineno____doc__	__slots__r   strr   r	   r   classmethodr!   r   LocationLimitMIN_CHAT_LOCATION_ADDRESSr%   r   int__annotations__MAX_CHAT_LOCATION_ADDRESSr&   __static_attributes____classcell__)r   s   @r   r   r       s    ( (I *. 
 X&  >B3H%3,4UO3	.	!3 3 (55OOKsO (55OOKsOr   r   N)r+   typingr   r   r   telegramr   telegram._files.locationr   telegram._telegramobjectr   telegram._utils.typesr	   r
   r    r   r   <module>r<      s/   & ^ 1 1  - 3 *=> =r   