telegram api constructor · layer 229 · #cfc9e002

mediaAreaCoordinates

Coordinates and size of a clickable rectangular area on top of a story.

definition

mediaAreaCoordinates#cfc9e002 flags:# x:double y:double w:double h:double rotation:double radius:flags.0?double = MediaAreaCoordinates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
xdoubleThe abscissa of the rectangle's center, as a percentage of the media width (0-100).
ydoubleThe ordinate of the rectangle's center, as a percentage of the media height (0-100).
wdoubleThe width of the rectangle, as a percentage of the media width (0-100).
hdoubleThe height of the rectangle, as a percentage of the media height (0-100).
rotationdoubleClockwise rotation angle of the rectangle, in degrees (0-360).
radiusflags.0?doubleThe radius of the rectangle corner rounding, as a percentage of the media width.

type

MediaAreaCoordinates

history

present in layers 161–229 · constructor id changed 1×

idlayers
#03d1ea4e161–181
#cfc9e002182–229