StoryAreaPosition

class telegram.StoryAreaPosition(x_percentage, y_percentage, width_percentage, height_percentage, rotation_angle, corner_radius_percentage, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

Describes the position of a clickable area within a story.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if all of their attributes are equal.

Added in version 22.1.

Parameters:
x_percentage[source]

The abscissa of the area’s center, as a percentage of the media width.

Type:

float

y_percentage[source]

The ordinate of the area’s center, as a percentage of the media height.

Type:

float

width_percentage[source]

The width of the area’s rectangle, as a percentage of the media width.

Type:

float

height_percentage[source]

The height of the area’s rectangle, as a percentage of the media height.

Type:

float

rotation_angle[source]

The clockwise rotation angle of the rectangle, in degrees; 0-360.

Type:

float

corner_radius_percentage[source]

The radius of the rectangle corner rounding, as a percentage of the media width.

Type:

float