MediaAreaGeoPoint

class pyrogram.raw.types.MediaAreaGeoPoint

Represents a geolocation tag attached to a story.

Constructor of MediaArea.

Details:
  • Layer: 227

  • 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
├── coordinates → MediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── x → double
│ ├── y → double
│ ├── w → double
│ ├── h → double
│ ├── rotation → double
│ └── radius → double (optional)
├── geo → GeoPoint
│ ├── GeoPointEmpty
│ └── GeoPoint
│ ├── long → double
│ ├── lat → double
│ ├── access_hash → long
│ └── accuracy_radius → int (optional)
└── address → GeoPointAddress (optional)
└── GeoPointAddress
├── country_iso2 → string
├── state → string (optional)
├── city → string (optional)
└── street → string (optional)

Example

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