AreaPosition¶
- class pyrogram.types.AreaPosition[source]¶
The position of an area on a media or a card.
- Parameters:
x_percentage (
float) – The abscissa of the area’s center, as a percentage of the media or the card width.y_percentage (
float) – The ordinate of the area’s center, as a percentage of the media or the card height.width_percentage (
float) – The width of the area’s rectangle, as a percentage of the media or the card width.height_percentage (
float) – The height of the area’s rectangle, as a percentage of the media or the card height.rotation_angle (
float) – The clockwise rotation angle of the rectangle, in degrees; 0-360.corner_radius_percentage (
float) – The radius of the rectangle corner rounding, as a percentage of the media or the card width.