MediaArea

class pyrogram.raw.base.MediaArea

Represents a story media area »

Constructors:

This base type has 9 constructors available.

InputMediaAreaChannelPost

Represents a channel post

InputMediaAreaVenue

Represents a location tag attached to a story, with additional venue information.

MediaAreaChannelPost

Represents a channel post.

MediaAreaGeoPoint

Represents a geolocation tag attached to a story.

MediaAreaStarGift

Represents a collectible gift ».

MediaAreaSuggestedReaction

Represents a reaction bubble.

MediaAreaUrl

Represents a URL media area.

MediaAreaVenue

Represents a location tag attached to a story, with additional venue information.

MediaAreaWeather

Represents a weather widget ».

TL Schema


Parameter Tree

MediaArea
├── MediaAreaVenue
│ ├── coordinates → MediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ │ ├── x → double
│ │ ├── y → double
│ │ ├── w → double
│ │ ├── h → double
│ │ ├── rotation → double
│ │ └── radius → double (optional)
│ ├── geo → GeoPoint
│ │ ├── GeoPointEmpty
│ │ └── GeoPoint
│ │ ├── long → double
│ │ ├── lat → double
│ │ ├── access_hash → long
│ │ └── accuracy_radius → int (optional)
│ ├── title → string
│ ├── address → string
│ ├── provider → string
│ ├── venue_id → string
│ └── venue_type → string
│ ├── coordinates → MediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ │ ├── x → double
│ │ ├── y → double
│ │ ├── w → double
│ │ ├── h → double
│ │ ├── rotation → double
│ │ └── radius → double (optional)
│ ├── query_id → long
│ └── result_id → string
│ ├── coordinates → MediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ │ ├── x → double
│ │ ├── y → double
│ │ ├── w → double
│ │ ├── h → double
│ │ ├── rotation → double
│ │ └── radius → double (optional)
│ ├── geo → GeoPoint
│ │ ├── GeoPointEmpty
│ │ └── GeoPoint
│ │ ├── long → double
│ │ ├── lat → double
│ │ ├── access_hash → long
│ │ └── accuracy_radius → int (optional)
│ └── address → GeoPointAddress (optional)
│ └── GeoPointAddress
│ ├── country_iso2 → string
│ ├── state → string (optional)
│ ├── city → string (optional)
│ └── street → string (optional)
│ ├── dark → true (optional)
│ ├── flipped → true (optional)
│ ├── coordinates → MediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ │ ├── x → double
│ │ ├── y → double
│ │ ├── w → double
│ │ ├── h → double
│ │ ├── rotation → double
│ │ └── radius → double (optional)
│ └── reaction → Reaction
│ ├── ReactionEmpty
│ ├── ReactionEmoji
│ │ └── emoticon → string
│ ├── ReactionCustomEmoji
│ │ └── document_id → long
│ └── ReactionPaid
│ ├── coordinates → MediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ │ ├── x → double
│ │ ├── y → double
│ │ ├── w → double
│ │ ├── h → double
│ │ ├── rotation → double
│ │ └── radius → double (optional)
│ ├── channel_id → long
│ └── msg_id → int
│ ├── coordinates → MediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ │ ├── x → double
│ │ ├── y → double
│ │ ├── w → double
│ │ ├── h → double
│ │ ├── rotation → double
│ │ └── radius → double (optional)
│ ├── channel → InputChannel
│ │ ├── InputChannelEmpty
│ │ ├── InputChannel
│ │ └── InputChannelFromMessage
│ └── msg_id → int
├── MediaAreaUrl
│ ├── coordinates → MediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ │ ├── x → double
│ │ ├── y → double
│ │ ├── w → double
│ │ ├── h → double
│ │ ├── rotation → double
│ │ └── radius → double (optional)
│ └── url → string
│ ├── coordinates → MediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ │ ├── x → double
│ │ ├── y → double
│ │ ├── w → double
│ │ ├── h → double
│ │ ├── rotation → double
│ │ └── radius → double (optional)
│ ├── emoji → string
│ ├── temperature_c → double
│ └── color → int
├── coordinates → MediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── x → double
│ ├── y → double
│ ├── w → double
│ ├── h → double
│ ├── rotation → double
│ └── radius → double (optional)
└── slug → string

Example