MediaAreaWeather

class pyrogram.raw.types.MediaAreaWeather

Represents a weather widget ».

Constructor of MediaArea.

Details:
  • Layer: 223

  • ID: 49A6549C

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

  • emoji (str) – Weather emoji, should be rendered as an animated emoji.

  • temperature_c (float 64-bit) – Temperature in degrees Celsius.

  • color (int 32-bit) – ARGB background color.

TL Schema

mediaAreaWeather#49a6549c
coordinates:MediaAreaCoordinates
emoji:string
temperature_c:double
color:int

= MediaArea

Parameter Tree

MediaAreaWeather
├── coordinatesMediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── xdouble
│ ├── ydouble
│ ├── wdouble
│ ├── hdouble
│ ├── rotationdouble
│ └── radiusdouble (optional)
├── emojistring
├── temperature_cdouble
└── colorint

Example

MediaAreaWeather(
    coordinates=MediaAreaCoordinates(
        x=0.0,
        y=0.0,
        w=0.0,
        h=0.0,
        rotation=0.0
    ),
    emoji="text",
    temperature_c=0.0,
    color=0,
)