MediaAreaCoordinates

class pyrogram.raw.types.MediaAreaCoordinates

Coordinates and size of a clickable rectangular area on top of a story.

Constructor of MediaAreaCoordinates.

Details:
  • Layer: 223

  • ID: CFC9E002

Parameters:
  • x (float 64-bit) – The abscissa of the rectangle’s center, as a percentage of the media width (0-100).

  • y (float 64-bit) – The ordinate of the rectangle’s center, as a percentage of the media height (0-100).

  • w (float 64-bit) – The width of the rectangle, as a percentage of the media width (0-100).

  • h (float 64-bit) – The height of the rectangle, as a percentage of the media height (0-100).

  • rotation (float 64-bit) – Clockwise rotation angle of the rectangle, in degrees (0-360).

  • radius (float 64-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
├── xdouble
├── ydouble
├── wdouble
├── hdouble
├── rotationdouble
└── radiusdouble (optional)

Example

MediaAreaCoordinates(
    x=0.0,
    y=0.0,
    w=0.0,
    h=0.0,
    rotation=0.0,
)