MediaAreaVenue

class pyrogram.raw.types.MediaAreaVenue

Represents a location tag attached to a story, with additional venue information.

Constructor of MediaArea.

Details:
  • Layer: 223

  • ID: BE82DB9C

Parameters:
  • coordinates (MediaAreaCoordinates) – The size and location of the media area corresponding to the location sticker on top of the story media.

  • geo (GeoPoint) – Coordinates of the venue

  • title (str) – Venue name

  • address (str) – Address

  • provider (str) – Venue provider: currently only “foursquare” needs to be supported.

  • venue_id (str) – Venue ID in the provider’s database

  • venue_type (str) – Venue type in the provider’s database

TL Schema

mediaAreaVenue#be82db9c
coordinates:MediaAreaCoordinates
geo:GeoPoint
title:string
address:string
provider:string
venue_id:string
venue_type:string

= MediaArea

Parameter Tree

MediaAreaVenue
├── coordinatesMediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── xdouble
│ ├── ydouble
│ ├── wdouble
│ ├── hdouble
│ ├── rotationdouble
│ └── radiusdouble (optional)
├── geoGeoPoint
│ ├── GeoPointEmpty
│ └── GeoPoint
│ ├── longdouble
│ ├── latdouble
│ ├── access_hashlong
│ └── accuracy_radiusint (optional)
├── titlestring
├── addressstring
├── providerstring
├── venue_idstring
└── venue_typestring

Example

MediaAreaVenue(
    coordinates=MediaAreaCoordinates(
        x=0.0,
        y=0.0,
        w=0.0,
        h=0.0,
        rotation=0.0
    ),
    geo=GeoPointEmpty(),
    title="text",
    address="text",
    provider="text",
    venue_id="text",
    venue_type="text",
)