Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# Venue

class telegram.Venue(location, title, address, foursquare_id=None, foursquare_type=None, google_place_id=None, google_place_type=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  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 `location` and `title` are equal.

  Note

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

  Use In

  `telegram.Bot.send_venue()`

  Available In

  - `telegram.ExternalReplyInfo.venue`

  - `telegram.Message.venue`

  Parameters:

    - location (`telegram.Location`) – Venue location.

    - title (`str`) – Name of the venue.

    - address (`str`) – Address of the venue.

    - foursquare_id (`str`, optional) – Foursquare identifier of the venue.

    - foursquare_type (`str`, optional) – Foursquare type of the venue. (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.)

  location

    Venue location.

    Type:

      `telegram.Location`

  title

    Name of the venue.

    Type:

      `str`

  address

    Address of the venue.

    Type:

      `str`

  foursquare_id

    Optional. Foursquare identifier of the venue.

    Type:

      `str`

  foursquare_type

    Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)

    Type:

      `str`

  google_place_id

    Optional. Google Places identifier of the venue.

    Type:

      `str`

  google_place_type

    Optional. Google Places type of the venue. (See supported types.)

    Type:

      `str`

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.