Twitter Direct Message GIF media issue



GIF shared in direct message, returns media_url “” which is publicly available, but when any image is shared the media_url “” not accessible publicly and need authentication. So the fetching gif doesn’t work seamlessly for like jpg/png. Please help us how to retrieve gif image other then getting the media file stream.

Thanks in advance