MediaAreaVenue
- class pyrogram.raw.types.MediaAreaVenue
Represents a location tag attached to a story, with additional venue information.
Constructor of
MediaArea.- Details:
Layer:
223ID:
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 venuetitle (
str) – Venue nameaddress (
str) – Addressprovider (
str) – Venue provider: currently only “foursquare” needs to be supported.venue_id (
str) – Venue ID in the provider’s databasevenue_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
├── 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)├── title →
string├── address →
string├── provider →
string├── venue_id →
string└── venue_type →
stringExample
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",
)