MediaAreaGeoPoint

class pyrogram.raw.types.MediaAreaGeoPoint

Represents a geolocation tag attached to a story.

Constructor of MediaArea.

Details:
  • Layer: 223

  • ID: CAD5452D

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

  • geo (GeoPoint) – Coordinates of the geolocation tag.

  • address (GeoPointAddress, optional) – Optional textual representation of the address.

TL Schema

mediaAreaGeoPoint#cad5452d
flags:#
coordinates:MediaAreaCoordinates
geo:GeoPoint
address:flags.0?GeoPointAddress

= MediaArea

Parameter Tree

MediaAreaGeoPoint
├── coordinatesMediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── xdouble
│ ├── ydouble
│ ├── wdouble
│ ├── hdouble
│ ├── rotationdouble
│ └── radiusdouble (optional)
├── geoGeoPoint
│ ├── GeoPointEmpty
│ └── GeoPoint
│ ├── longdouble
│ ├── latdouble
│ ├── access_hashlong
│ └── accuracy_radiusint (optional)
└── addressGeoPointAddress (optional)
└── GeoPointAddress
├── country_iso2string
├── statestring (optional)
├── citystring (optional)
└── streetstring (optional)

Example

MediaAreaGeoPoint(
    coordinates=MediaAreaCoordinates(
        x=0.0,
        y=0.0,
        w=0.0,
        h=0.0,
        rotation=0.0
    ),
    geo=GeoPointEmpty(),
)