Trying to use POST direct_messages/events/new to send direct message.
It works if media id is attached, but if trying to send message without media it always fails with HTTP 415 (Unsupported Media Type). Media is defined as “optional” in documentation, so I wonder what could be wrong there.
Also documentation said that “text” should be url-encoded if necessary but this doesn’t seem to work either. Message appears non-decoded (e.g. “Hello%20World”) in Twitter messages.