mediaUrl property
An http://
URL pointing directly to the uploaded media file.
For media in direct messages, mediaUrl is the same https URL as mediaUrlHttps and must be accessed by signing a request with the user’s access token using OAuth 1.0A.
You cannot directly embed these images in a web page.
See https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/entities-object#photo_format for how to format a photo's URL, such as mediaUrlHttps, based on the available sizes.
Implementation
String? mediaUrl;