A description of an image to enable and support accessibility. Can be
up to 1000 characters long. Alt text can only be added to images at the
moment.
+ variants: List[Dict] | None
+ Each media object may have multiple display or playback variants,
+ with different resolutions or formats
References
----------
"data", "media_key", "url", "type", "duration_ms", "height",
"non_public_metrics", "organic_metrics", "preview_image_url",
"promoted_metrics", "public_metrics", "width", "alt_text",
+ "variants"
)
def __init__(self, data):
self.public_metrics = data.get("public_metrics")
self.width = data.get("width")
self.alt_text = data.get("alt_text")
+ self.variants = data.get("variants")
def __eq__(self, other):
if isinstance(other, self.__class__):