Describes the position of a clickable area within a story https://core.telegram.org/bots/api#storyare...
float cornerRadiusPercentage
The radius of the rectangle corner rounding, as a percentage of the media width.
float widthPercentage
The width of the area's rectangle, as a percentage of the media width.
float yPercentage
The ordinate of the area's center, as a percentage of the media height.
StoryAreaPosition(const nl::json &json)
float heightPercentage
The height of the area's rectangle, as a percentage of the media height.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
float xPercentage
The abscissa of the area's center, as a percentage of the media width.
StoryAreaPosition()=default
nl::json toJson() const
Serializes this object to JSON.
float rotationAngle
The clockwise rotation angle of the rectangle, in degrees; 0-360.