Skip to content
Back to top
View this page

# InputMediaVenue

class telegram.InputMediaVenue(latitude, longitude, title, address, foursquare_id=None, foursquare_type=None, google_place_id=None, google_place_type=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Represents a venue to be sent.

  Use In

  `telegram.Bot.send_poll()`

  Available In

  `telegram.InputPollOption.media`

  Added in version 22.8.

  Parameters:

    - latitude (`float`) – Latitude of the location.

    - longitude (`float`) – Longitude of the 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, 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)

  type

    `'venue'`.

    Type:

      `str`

  latitude

    Latitude of the location.

    Type:

      `float`

  longitude

    Longitude of the location.

    Type:

      `float`

  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, if known. (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`