MediaArea

class pyrogram.types.MediaArea

Represents a clickable rectangular area on a story.

Parameters:
  • coordinates (MediaAreaCoordinates) – The coordinates of this area.

  • type (str) – Type of the media area. Can be one of: - “geo”: A location - “venue”: A venue - “reaction”: A suggested reaction - “channel_post”: A channel post - “url”: A URL - “weather”: Weather information - “star_gift”: A star gift

  • geo (Location, optional) – For “geo” type, the location.

  • venue (Venue, optional) – For “venue” type, the venue.

  • reaction (Reaction, optional) – For “reaction” type, the suggested reaction.

  • channel_id (int, optional) – For “channel_post” type, the channel ID.

  • message_id (int, optional) – For “channel_post” type, the message ID.

  • url (str, optional) – For “url” type, the URL.

  • is_dark (bool, optional) – For “reaction” type, whether it should be displayed in dark mode.

  • is_flipped (bool, optional) – For “reaction” type, whether the reaction is flipped.