MediaArea¶
- class pyrogram.types.MediaArea¶
Describes the media area added to a story.
- Parameters:
x (
float) – The abscissa of the rectangle’s center, as a percentage of the media width (0-100).y (
float) – The ordinate of the rectangle’s center, as a percentage of the media height (0-100).width (
float) – The width of the rectangle, as a percentage of the media width (0-100).height (
float) – The height of the rectangle, as a percentage of the media height (0-100).rotation (
float) – Clockwise rotation angle of the rectangle, in degrees (0-360).type (
MediaAreaType) – The type of the media area.radius (
float, optional) – The radius of the rectangle corner rounding, as a percentage of the media width.sender_chat (
Chat, optional) – The channel that posted the message. For post type only.message_id (
int, optional) – Identifier of the message in channel. For post type only.message (
Message, optional) – Message attached to the story. Can be empty if the message was deleted or unavailable (channel is private). For post type only.location (
Location, optional) – Represents a location tag attached to a story. For location type only.reaction (
Reaction, optional) – The reaction that should be sent when this area is clicked. For reaction type only.is_dark (
bool, optional) – True if the reaction bubble has a dark background. For reaction type only.is_flipped (
bool, optional) – True if the reaction bubble is mirrored. For reaction type only.url (
str, optional) – URL to open when clicked. For url type only.emoji (
str, optional) – Weather emoji, should be rendered as an animated emoji. For weather type only.temperature (
float, optional) – Temperature in degrees Celsius. For weather type only.color (
int, optional) – The argb color in decimal format. For weather type only.gift (
Gift, optional) – Information about this gift.