We can send images and videos with media category dm_image and dm_video, however, every time we try to send a GIF with the media category dm_gif we get this error:Error: HTTP Error 500: Internal Server Error, API message: {"errors":[{"message":"Internal error","code":131}]}

Here is one media_id we tried to send: 893412318830370816

There is no enough information in the response to know what’s wrong, we tried with different gifs from https://giphy.com but all of them fail when sending the DM.

Please note that the upload works well, this is a problem when using the endpoint https://api.twitter.com/1.1/direct_messages/events/new.json.