Skip to content
Back to top
View this page

# StoryAreaType

class telegram.StoryAreaType(type, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Describes the type of a clickable area on a story. Currently, it can be one of:

  - `telegram.StoryAreaTypeLocation`

  - `telegram.StoryAreaTypeSuggestedReaction`

  - `telegram.StoryAreaTypeLink`

  - `telegram.StoryAreaTypeWeather`

  - `telegram.StoryAreaTypeUniqueGift`

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `type` is equal.

  Available In

  `telegram.StoryArea.type`

  Added in version 22.1.

  Parameters:

    type (`str`) – Type of the area.

  type

    Type of the area.

    Type:

      `str`

  LINK = 'link'

    `telegram.constants.StoryAreaTypeType.LINK`

  LOCATION = 'location'

    `telegram.constants.StoryAreaTypeType.LOCATION`

  SUGGESTED_REACTION = 'suggested_reaction'

    `telegram.constants.StoryAreaTypeType.SUGGESTED_REACTION`

  UNIQUE_GIFT = 'unique_gift'

    `telegram.constants.StoryAreaTypeType.UNIQUE_GIFT`

  WEATHER = 'weather'

    `telegram.constants.StoryAreaTypeType.WEATHER`