StoryAreaPosition
Describes the position of a clickable area within a story.
fields
| field | type | required | description |
|---|---|---|---|
x_percentage | number | required | The abscissa of the area's center, as a percentage of the media width |
y_percentage | number | required | The ordinate of the area's center, as a percentage of the media height |
width_percentage | number | required | The width of the area's rectangle, as a percentage of the media width |
height_percentage | number | required | The height of the area's rectangle, as a percentage of the media height |
rotation_angle | number | required | The clockwise rotation angle of the rectangle, in degrees; 0-360 |
corner_radius_percentage | number | required | The radius of the rectangle corner rounding, as a percentage of the media width |
import
import type { StoryAreaPosition } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#storyareaposition