§
    «eîiX  ã                   ór   — d Z ddl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d
S )z@This module contains an object that represents a Telegram Venue.é    )ÚTYPE_CHECKING)ÚLocation)ÚTelegramObject)Úde_json_optional)ÚJSONDict)ÚBotc                   ó    ‡ — e Zd ZdZdZ	 	 	 	 dddœdededededz  d	edz  d
edz  dedz  dedz  fˆ fd„Ze	ddedddd fˆ fd„¦   «         Z
ˆ xZS )ÚVenueaG  This object represents a venue.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`location` and :attr:`title` are equal.

    Note:
      Foursquare details and Google Place details are mutually exclusive. However, this
      behaviour is undocumented and might be changed by Telegram.

    Args:
        location (:class:`telegram.Location`): Venue location.
        title (:obj:`str`): Name of the venue.
        address (:obj:`str`): Address of the venue.
        foursquare_id (:obj:`str`, optional): Foursquare identifier of the venue.
        foursquare_type (:obj:`str`, optional): Foursquare type of the venue. (For example,
            "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
        google_place_id (:obj:`str`, optional): Google Places identifier of the venue.
        google_place_type (:obj:`str`, optional): Google Places type of the venue. (See
            `supported types <https://developers.google.com/maps/documentation/places/web-service            /place-types>`_.)

    Attributes:
        location (:class:`telegram.Location`): Venue location.
        title (:obj:`str`): Name of the venue.
        address (:obj:`str`): Address of the venue.
        foursquare_id (:obj:`str`): Optional. Foursquare identifier of the venue.
        foursquare_type (:obj:`str`): Optional. Foursquare type of the venue. (For example,
            "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
        google_place_id (:obj:`str`): Optional. Google Places identifier of the venue.
        google_place_type (:obj:`str`): Optional. Google Places type of the venue. (See
            `supported types <https://developers.google.com/maps/documentation/places/web-service            /place-types>`_.)

    )ÚaddressÚfoursquare_idÚfoursquare_typeÚgoogle_place_idÚgoogle_place_typeÚlocationÚtitleN©Ú
api_kwargsr   r   r   r   r   r   r   r   c                óü   •— t          ¦   «                              |¬¦  «         || _        || _        || _        || _        || _        || _        || _        | j        | j        f| _	        |  
                    ¦   «          d S )Nr   )ÚsuperÚ__init__r   r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)
Úselfr   r   r   r   r   r   r   r   Ú	__class__s
            €úY/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_files/venue.pyr   zVenue.__init__N   sx   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/ð #+ˆŒØˆŒ
Ø#ˆŒà)6ˆÔØ+:ˆÔØ+:ˆÔØ->ˆÔàœ-¨¬Ð4ˆŒà�Š‰Œˆˆˆó    ÚdataÚbotz
Bot | NoneÚreturnc                 óÌ   •— |                       |¦  «        }t          |                     d¦  «        t          |¦  «        |d<   t	          ¦   «                              ||¬¦  «        S )z,See :meth:`telegram.TelegramObject.de_json`.r   )r   r   )Ú_parse_datar   Úgetr   r   Úde_json)Úclsr   r   r   s      €r   r#   zVenue.de_jsonj   sR   ø€ ð �Š˜tÑ$Ô$ˆå+¨D¯HªH°ZÑ,@Ô,@Å(ÈCÑPÔPˆˆZÑå‰wŒw�Š D¨cˆÑ2Ô2Ð2r   )NNNN)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   Ústrr   r   Úclassmethodr#   Ú__classcell__)r   s   @r   r
   r
       s  ø€ € € € € ð!ð !ðF€Ið %)Ø&*Ø&*Ø(,ðð '+ðð ð àðð ðð ð	ð
 ˜T‘zðð ˜t™ðð ˜t™ðð  ™:ðð ˜t‘Oðð ð ð ð ð ð8 ð3ð 3˜8ð 3¨,ð 3À'ð 3ð 3ð 3ð 3ð 3ñ „[ð3ð 3ð 3ð 3ð 3r   r
   N)r(   Útypingr   Útelegram._files.locationr   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.typesr   Útelegramr   r
   © r   r   ú<module>r4      sÀ   ðð& GÐ Fà  Ð  Ð  Ð  Ð  Ð  à -Ð -Ð -Ð -Ð -Ð -Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø <Ð <Ð <Ð <Ð <Ð <Ø *Ð *Ð *Ð *Ð *Ð *àð ØÐÐÐÐÐðQ3ð Q3ð Q3ð Q3ð Q3ˆNñ Q3ô Q3ð Q3ð Q3ð Q3r   