MediaAreaUrl

class pyrogram.raw.types.MediaAreaUrl

Represents a URL media area.

Constructor of MediaArea.

Details:
  • Layer: 223

  • ID: 37381085

Parameters:
  • coordinates (MediaAreaCoordinates) – The size and location of the media area corresponding to the URL button on top of the story media.

  • url (str) – URL to open when clicked.

TL Schema

mediaAreaUrl#37381085
coordinates:MediaAreaCoordinates
url:string

= MediaArea

Parameter Tree

MediaAreaUrl
├── coordinatesMediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── xdouble
│ ├── ydouble
│ ├── wdouble
│ ├── hdouble
│ ├── rotationdouble
│ └── radiusdouble (optional)
└── urlstring

Example

MediaAreaUrl(
    coordinates=MediaAreaCoordinates(
        x=0.0,
        y=0.0,
        w=0.0,
        h=0.0,
        rotation=0.0
    ),
    url="https://google.com",
)