models/api/entieties/media_entity library

Classes

MediaEntity
Represents media elements uploaded with the Tweet.
Size
Sizes
All Tweets with native media (photos, video, and GIFs) will include a set of ‘thumb’, ‘small’, ‘medium’, and ‘large’ sizes with height and width pixel sizes. For photos and preview image media URLs, Photo Media URL formatting specifies how to construct different URLs for loading different sized photo media.
Variant
VideoInfo
Contains information about video.