StaticGramBot API

StoryAreaPosition

Describes the position of a clickable area within a story.

Поля

The abscissa of the area's center, as a percentage of the media width
The ordinate of the area's center, as a percentage of the media height
The width of the area's rectangle, as a percentage of the media width
The height of the area's rectangle, as a percentage of the media height
The clockwise rotation angle of the rectangle, in degrees; 0-360
The radius of the rectangle corner rounding, as a percentage of the media width

Минимальный JSON

JSON
{
  "x_percentage": 0.0,
  "y_percentage": 0.0,
  "width_percentage": 0.0,
  "height_percentage": 0.0,
  "rotation_angle": 0.0,
  "corner_radius_percentage": 0.0
}

Где используется

Типы

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top