L indZddlmZmZddlmZddlmZddlm Z ddl m Z erddl m Z Gdd eZy ) z@This module contains an object that represents a Telegram Venue.) TYPE_CHECKINGOptional)Location)TelegramObject)de_json_optional)JSONDict)BotceZdZdZdZ ddddedededeed eed eed eed eeffd Z e ddededddffd Z xZ S)VenueaOThis 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 `_.) 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 `_.) )address foursquare_idfoursquare_typegoogle_place_idgoogle_place_typelocationtitleN api_kwargsrrr r rrrrct ||||_||_||_||_||_||_||_|j|jf|_ |jy)Nr) super__init__rrr r rrr _id_attrs_freeze) selfrrr r rrrr __class__s [/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_files/venue.pyrzVenue.__init__Nsi J/#+  # ,9.=.=0A--4 databotr returnc|j|}t|jdt||d<t|||S)z,See :meth:`telegram.TelegramObject.de_json`.r)rr) _parse_datargetrrde_json)clsrrrs rr$z Venue.de_jsonjsBt$+DHHZ,@(CPZwDc22r)NNNN)N) __name__ __module__ __qualname____doc__ __slots__rstrrrr classmethodr$ __classcell__)rs@rr r s!FI(,)-)-+/*.   }  "# "#$C=X&8383(5/3W33rr N)r)typingrrtelegram._files.locationrtelegram._telegramobjectrtelegram._utils.argumentparsingrtelegram._utils.typesrtelegramr r rrr5s.&G*-3<*Q3NQ3r