telegram.InputVenueMessageContent¶
-
class
telegram.
InputVenueMessageContent
(latitude, longitude, title, address, foursquare_id=None, foursquare_type=None, google_place_id=None, google_place_type=None, **_kwargs)¶ Bases:
telegram.inline.inputmessagecontent.InputMessageContent
Represents the content of a venue message to be sent as the result of an inline query.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
latitude
,longitude
andtitle
are equal.Note
Foursquare details and Google Pace details are mutually exclusive. However, this behaviour is undocumented and might be changed by Telegram.
- Parameters
latitude (
float
) – Latitude of the location in degrees.longitude (
float
) – Longitude of the location in degrees.title (
str
) – Name of the venue.address (
str
) – Address of the venue.foursquare_id (
str
, optional) – Foursquare identifier of the venue, if known.foursquare_type (
str
, optional) – Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)google_place_id (
str
, optional) – Google Places identifier of the venue.google_place_type (
str
, optional) – Google Places type of the venue. (See supported types.)**kwargs (
dict
) – Arbitrary keyword arguments.
-
latitude
¶ Latitude of the location in degrees.
- Type
float
-
longitude
¶ Longitude of the location in degrees.
- Type
float
-
title
¶ Name of the venue.
- Type
str
-
address
¶ Address of the venue.
- Type
str
-
foursquare_id
¶ Optional. Foursquare identifier of the venue, if known.
- Type
str
-
foursquare_type
¶ Optional. Foursquare type of the venue, if known.
- Type
str
-
google_place_id
¶ Optional. Google Places identifier of the venue.
- Type
str
-
google_place_type
¶ Optional. Google Places type of the venue.
- Type
str