MediaAreaCoordinates
- class pyrogram.raw.types.MediaAreaCoordinates
Coordinates and size of a clickable rectangular area on top of a story.
Constructor of
MediaAreaCoordinates.- Details:
Layer:
223ID:
CFC9E002
- Parameters:
x (
float64-bit) – The abscissa of the rectangle’s center, as a percentage of the media width (0-100).y (
float64-bit) – The ordinate of the rectangle’s center, as a percentage of the media height (0-100).w (
float64-bit) – The width of the rectangle, as a percentage of the media width (0-100).h (
float64-bit) – The height of the rectangle, as a percentage of the media height (0-100).rotation (
float64-bit) – Clockwise rotation angle of the rectangle, in degrees (0-360).radius (
float64-bit, optional) – The radius of the rectangle corner rounding, as a percentage of the media width.
TL Schema
mediaAreaCoordinates#cfc9e002
flags:#
x:double
y:double
w:double
h:double
rotation:double
radius:flags.0?double
= MediaAreaCoordinates
Parameter Tree
MediaAreaCoordinates
├── x →
double├── y →
double├── w →
double├── h →
double├── rotation →
double└── radius →
double (optional)Example
MediaAreaCoordinates(
x=0.0,
y=0.0,
w=0.0,
h=0.0,
rotation=0.0,
)