MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / Venue

Class Venue

src/telegram/_files/venue.py:32–113  ·  view source on GitHub ↗

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, thi

Source from the content-addressed store, hash-verified

30
31
32class Venue(TelegramObject):
33 """This object represents a venue.
34
35 Objects of this class are comparable in terms of equality. Two objects of this class are
36 considered equal, if their :attr:`location` and :attr:`title` are equal.
37
38 Note:
39 Foursquare details and Google Place details are mutually exclusive. However, this
40 behaviour is undocumented and might be changed by Telegram.
41
42 Args:
43 location (:class:`telegram.Location`): Venue location.
44 title (:obj:`str`): Name of the venue.
45 address (:obj:`str`): Address of the venue.
46 foursquare_id (:obj:`str`, optional): Foursquare identifier of the venue.
47 foursquare_type (:obj:`str`, optional): Foursquare type of the venue. (For example,
48 "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
49 google_place_id (:obj:`str`, optional): Google Places identifier of the venue.
50 google_place_type (:obj:`str`, optional): Google Places type of the venue. (See
51 `supported types <https://developers.google.com/maps/documentation/places/web-service\
52 /place-types>`_.)
53
54 Attributes:
55 location (:class:`telegram.Location`): Venue location.
56 title (:obj:`str`): Name of the venue.
57 address (:obj:`str`): Address of the venue.
58 foursquare_id (:obj:`str`): Optional. Foursquare identifier of the venue.
59 foursquare_type (:obj:`str`): Optional. Foursquare type of the venue. (For example,
60 "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
61 google_place_id (:obj:`str`): Optional. Google Places identifier of the venue.
62 google_place_type (:obj:`str`): Optional. Google Places type of the venue. (See
63 `supported types <https://developers.google.com/maps/documentation/places/web-service\
64 /place-types>`_.)
65
66 """
67
68 __slots__ = (
69 "address",
70 "foursquare_id",
71 "foursquare_type",
72 "google_place_id",
73 "google_place_type",
74 "location",
75 "title",
76 )
77
78 def __init__(
79 self,
80 location: Location,
81 title: str,
82 address: str,
83 foursquare_id: str | None = None,
84 foursquare_type: str | None = None,
85 google_place_id: str | None = None,
86 google_place_type: str | None = None,
87 *,
88 api_kwargs: JSONDict | None = None,
89 ):

Callers 3

PollMediaTestBaseClass · 0.90
venueFunction · 0.90
test_equalityMethod · 0.90

Calls

no outgoing calls

Tested by 2

venueFunction · 0.72
test_equalityMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…