StoryAreaTypeWeather

class telegram.StoryAreaTypeWeather(temperature, emoji, background_color, *, api_kwargs=None)[source]

Bases: telegram.StoryAreaType

Describes a story area containing weather information. Currently, a story can have up to 3 weather areas.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their temperature, emoji and background_color are equal.

Added in version 22.1.

Parameters:
type[source]

Type of the area, always 'weather'.

Type:

str

temperature[source]

Temperature, in degree Celsius.

Type:

float

emoji[source]

Emoji representing the weather.

Type:

str

background_color[source]

A color of the area background in the ARGB format.

Type:

int