Skip to content
Back to top
View this page

# StoryAreaTypeWeather

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

  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.

  Available In

  `telegram.StoryArea.type`

  Added in version 22.1.

  Parameters:

    - temperature (`float`) – Temperature, in degree Celsius.

    - emoji (`str`) – Emoji representing the weather.

    - background_color (`int`) – A color of the area background in the `ARGB` format.

  type

    Type of the area, always `'weather'`.

    Type:

      `str`

  temperature

    Temperature, in degree Celsius.

    Type:

      `float`

  emoji

    Emoji representing the weather.

    Type:

      `str`

  background_color

    A color of the area background in the `ARGB` format.

    Type:

      `int`