MediaAreaStarGift

class pyrogram.raw.types.MediaAreaStarGift

Represents a collectible gift ».

Constructor of MediaArea.

Details:
  • Layer: 223

  • ID: 5787686D

Parameters:
  • coordinates (MediaAreaCoordinates) – Coordinates of the media area.

  • slug (str) – slug from starGiftUnique.slug, that can be resolved as specified here ».

TL Schema

mediaAreaStarGift#5787686d
coordinates:MediaAreaCoordinates
slug:string

= MediaArea

Parameter Tree

MediaAreaStarGift
├── coordinatesMediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── xdouble
│ ├── ydouble
│ ├── wdouble
│ ├── hdouble
│ ├── rotationdouble
│ └── radiusdouble (optional)
└── slugstring

Example

MediaAreaStarGift(
    coordinates=MediaAreaCoordinates(
        x=0.0,
        y=0.0,
        w=0.0,
        h=0.0,
        rotation=0.0
    ),
    slug="text",
)