MediaAreaUrl
- class pyrogram.raw.types.MediaAreaUrl
Represents a URL media area.
Constructor of
MediaArea.- Details:
Layer:
223ID:
37381085
- Parameters:
coordinates (
MediaAreaCoordinates) – The size and location of the media area corresponding to the URL button on top of the story media.url (
str) – URL to open when clicked.
TL Schema
mediaAreaUrl#37381085
coordinates:MediaAreaCoordinates
url:string
= MediaArea
Parameter Tree
MediaAreaUrl
├── coordinates →
MediaAreaCoordinates│ └──
MediaAreaCoordinates│ ├── x →
double│ ├── y →
double│ ├── w →
double│ ├── h →
double│ ├── rotation →
double│ └── radius →
double (optional)└── url →
stringExample
MediaAreaUrl(
coordinates=MediaAreaCoordinates(
x=0.0,
y=0.0,
w=0.0,
h=0.0,
rotation=0.0
),
url="https://google.com",
)