MediaAreaWeather
- class pyrogram.raw.types.MediaAreaWeather
Represents a weather widget ».
Constructor of
MediaArea.- Details:
Layer:
223ID:
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 (
float64-bit) – Temperature in degrees Celsius.color (
int32-bit) – ARGB background color.
TL Schema
mediaAreaWeather#49a6549c
coordinates:MediaAreaCoordinates
emoji:string
temperature_c:double
color:int
= MediaArea
Parameter Tree
MediaAreaWeather
├── coordinates →
MediaAreaCoordinates│ └──
MediaAreaCoordinates│ ├── x →
double│ ├── y →
double│ ├── w →
double│ ├── h →
double│ ├── rotation →
double│ └── radius →
double (optional)├── emoji →
string├── temperature_c →
double└── color →
intExample
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,
)